This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:Array.prototype.map.apply(document.querySelectorAll("#search h3"), [(x) => { const e = x.parentElement; if (e.tagName !== "A") return null; return e.href; }]).filter((x) => x !== null).forEach((u, i) => setTimeout(() => window.open(u), i * 50)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "socket" | |
gs = TCPServer.open(20000) | |
addr = gs.addr | |
addr.shift | |
printf("server is on %s\n", addr.join(":")) | |
while true | |
Thread.start(gs.accept) do |s| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bench | |
import ( | |
"strings" | |
"testing" | |
) | |
func recursiveFindKeyStack(searchKey string, recursiveMap map[string]interface{}) []interface{} { | |
targets := []map[string]interface{}{ | |
recursiveMap, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(()=>{let t='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&()-=^~\\|@`[{]};+:*,<.>/?_'.split(""),l="";for(let e=0;e<16;e++)l+=t[~~(Math.random()*t.length)];alert(l)})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker image prune -f && docker volume prune -f && docker network prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Console | |
{ | |
public static $resultFile = ''; | |
public static function init() | |
{ | |
preg_match('@^(.+?)\.php@', __FILE__, $matches); | |
static::$resultFile = __DIR__ . '/result_' . basename($matches[1]) . '.csv'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests; | |
use Tests\TestCase; | |
class MigrationsTest extends TestCase | |
{ | |
/** | |
* Check table columns. MySQL only. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
let w = window, d = document, db = d.body; | |
let format = () => { | |
return "[" + d.title + "](" + d.URL + ")"; | |
}; | |
if (w.__z0 !== undefined) { | |
w.__z0.onClick({currentTarget: w.__z0d}); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//==================================================// | |
// 参考 | |
// http://qiita.com/shiozaki/items/0e42e101b7483df13c8f | |
// | |
// 使い方 | |
// <span class="gekiyasu">19800</span> | |
// <script src="gekiyasu.js"></script> | |
// <script> | |
// gekiyasu.initialize(); | |
// </script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In[1]: | |
get_ipython().magic(u'matplotlib inline') | |
from matplotlib import pyplot as plt | |
from __future__ import division, print_function, absolute_import | |
import pandas as pd | |
import numpy as np | |
import time as t |
NewerOlder