tag:crieit.net,2005:https://crieit.net/boards/try-code-ogp/feed 「コードのOGPを自由に試してみるボード」の投稿 - Crieit Crieitで「コードのOGPを自由に試してみるボード」ボードに投稿された最近の投稿 2019-10-28T11:06:42+09:00 https://crieit.net/boards/try-code-ogp/feed tag:crieit.net,2005:PublicArticle/8b9a3a798a1fb3448f23ff71eb5191a5 2019-10-28T11:06:42+09:00 2019-10-28T11:06:42+09:00 https://crieit.net/boards/try-code-ogp/8b9a3a798a1fb3448f23ff71eb5191a5 foreach ($users as $user) { $this-&g... <pre><code class="php"> foreach ($users as $user) { $this->sendMailMagazine($user, $posts); } </code></pre> だら@Crieit開発者 tag:crieit.net,2005:PublicArticle/da1222ee289e278fd905ae6a23538ac4 2019-02-22T20:03:49+09:00 2019-02-22T20:03:49+09:00 https://crieit.net/boards/try-code-ogp/da1222ee289e278fd905ae6a23538ac4 きたんたよたうはびとたすくなたたいかたらすたきなこたとつぶたやたこうたs/た//g <pre><code>きたんたよたうはびとたすくなたたいかたらすたきなこたとつぶたやたこうた s/た//g </code></pre> だら@Crieit開発者 tag:crieit.net,2005:PublicArticle/b0492b05573c8e08ad46cd502113a5d3 2019-02-21T12:50:03+09:00 2019-02-21T12:50:03+09:00 https://crieit.net/boards/try-code-ogp/b0492b05573c8e08ad46cd502113a5d3 $tagsToSync = collect($request->tags)->ma... <pre><code class="php">$tagsToSync = collect($request->tags)->map(function ($tagName) { return Tag::firstOrCreate(['name' => $tagName])->id; }); </code></pre> だら@Crieit開発者 tag:crieit.net,2005:PublicArticle/461856fd654b18f24459f1eed43812e1 2019-02-11T23:35:15+09:00 2019-02-11T23:35:15+09:00 https://crieit.net/boards/try-code-ogp/461856fd654b18f24459f1eed43812e1 たった7行でテトリスを実装「七行プログラミング」とは - Qiita で紹介されている7行のテ... <p><a target="_blank" rel="nofollow noopener" href="https://qiita.com/ryuichi1208/items/f9e6ac2b99bbe4fc82d3">たった7行でテトリスを実装「七行プログラミング」とは - Qiita</a> で紹介されている7行のテトリスのコードです。</p> <pre><code class="html"><body id=D onKeyDown=K=event.keyCode-38><script>Z=X=[B=A=12];function Y(){for(C =[q=c=i=4];f=i--*K;c-=!Z[h+(K+6?p+K:C[i]=p*A-(p/9|0)*145)])p=B[i];for(c?0:K+6?h +=K:t?B=C:0;i=K=q--;f+=Z[A+p])k=X[p=h+B[q]]=1;if(e=!e)if(h+=A,f|B)for(Z=X,X=[l= 228],B=[[-7,-20,6,h=17,-9,3,3][t=++t%7]-4,0,1,t-6?-A:2];l--;)for(l%A?l-=l%A*!Z[ l]:(P+=k++,c=l+=A);--c>A;)Z[c]=Z[c-A];for(S="";i<240;S+=X[i]|(X[i]=Z[i]|=++i%A< 2|i>228)?i%A?"■":"■<br>":"_");D.innerHTML=S+P;Z[5]||setTimeout(Y,99-P)}Y(h=e =K=t=P=0)</script> </code></pre> だら@Crieit開発者