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
import java.io.*; | |
import java.net.*; | |
public class Client { | |
int i; | |
static String iaddr; | |
static int port; | |
public Client() { | |
try{ |
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
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello Node.js\n'); | |
}).listen(8124, "127.0.0.1"); | |
console.log('Server running at http://127.0.0.1:8124/'); |
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
"あ(a)" "か(ka)" "さ(sa)" "た(ta)" "な(na)" "は(ha)" "ま(ma)" "や(ya)" "ら(ra)" "わ(wa)" "い(i)" "き(ki)" "し(shi)" "ち(chi)" "に(ni)" "ひ(hi)" "み(mi)" "り(ri)" "う(u)" "く(ku)" "す(su)" "つ(tsu)" "ぬ(nu)" "ふ(fu)" "む(mu)" "ゆ(yu)" "る(ru)" "ん(n )" "え(e)" "け(ke)" "せ(se)" "て(te)" "ね(ne)" "へ(he)" "め(me)" "れ(re)" "お(o)" "こ(ko)" "そ(so)" "と(to)" "の(no)" "ほ(ho)" "も(mo)" "よ(yo)" "ろ(ro)" "を(o)" "が(ga)" "ざ(za)" "だ(da)" "ば(ba)" "ぱ(pa)" "ぎ(gi)" "じ(ji)" "ぢ(ji)" "び(bi)" "ぴ(pi)" "ぐ(gu)" "ず(zu)" "づ(zu)" "ぶ(u)" "ぷ(pu)" "げ(ge)" "ぜ(ze)" "で(de)" "べ(be)" "ぺ(pe)" "ご(go)" "ぞ(zo)" "ど(do)" "ぼ(bo)" "ぽ(po)" "きゃ(kya)" "ぎゃ(gya)" "しゃ(sha)" "じゃ(ja)" "ちゃ(cha)" "にゃ(nya)" "ひゃ(hya)" "びゃ(bya)" "ぴゃ(pya)" "みゃ(mya)" "りゃ(rya)" "きゅ(kyu)" "ぎゅ(gyu)" "しゅ(shu)" "じゅ(ju)" "ちゅ(chu)" "にゅ(nyu)" "ひゅ(hyu)" "びゅ(byu)" "ぴゅ(pyu)" "みゅ(myu)" "りゅ(ryu)" "きょ(kyo)" "ぎょ(gyo)" "しょ(sho)" "じょ(jo)" "ちょ(cho)" "にょ(nyo)" "ひょ(hyo)" "びょ(byo)" "ぴょ(pyo)" "みょ(myo)" "りょ(ryo)" "ア(a)" "カ(ka)" "サ(sa)" "タ(ta)" "ナ(na)" "ハ(ha)" "マ(ma)" "ヤ(ya)" "ラ(ra)" "ワ(wa)" "イ(i)" "キ(ki)" "シ(shi)" "チ(chi)" "ニ(ni)" "ヒ(hi)" "ミ(mi |
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 | |
function check_alive($url, $timeout = 10, $successOn = array(200, 301)) { | |
$ch = curl_init($url); | |
// Set request options | |
curl_setopt_array($ch, array( | |
CURLOPT_FOLLOWLOCATION => false, | |
CURLOPT_NOBODY => true, | |
CURLOPT_TIMEOUT => $timeout, |
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
# First commit | |
echo "hello" | git hash-object -w --stdin | |
git update-index --add --cacheinfo 100644 ce013625030ba8dba906f756967f9e9ca394464a hello.txt | |
git write-tree | |
git commit-tree aaa96c -m "First commit" | |
git update-ref refs/heads/master 30b060d9a7b5e93c158642b2b6f64b2b758da40d | |
# Second commit |
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
[ | |
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" }, | |
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" }, | |
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" }, | |
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" }, | |
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" }, | |
{ "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" }, | |
{ "key": "cmd+7", "command": "workbench.action.openEditorAtIndex7" }, | |
{ "key": "cmd+8", "command": "workbench.action.openEditorAtIndex8" }, | |
{ "key": "cmd+9", "command": "workbench.action.openEditorAtIndex9" }, |
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
const timezone = [ | |
'GMT-11:00 - Pacific/Midway', | |
'GMT-11:00 - US/Samoa', | |
'GMT-10:00 - US/Hawaii', | |
'GMT-09:00 - US/Alaska', | |
'GMT-08:00 - US/Pacific', | |
'GMT-08:00 - America/Tijuana', | |
'GMT-07:00 - US/Arizona', | |
'GMT-07:00 - US/Mountain', | |
'GMT-07:00 - America/Chihuahua', |
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://bluebirdjs.com/docs/api/finally.html | |
Promise.prototype.end = function(fn) { | |
return new Promise((resolve, reject)=>{ | |
this.then((res)=>{ | |
fn(false, res) | |
resolve() | |
}) | |
.catch((er)=>{ | |
fn(true, er) |
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
import styled from 'styled-components'; | |
const isCurrent = (current, key) => current.group === key[0] && current.attr === key[1] ? true : false; | |
const hoverColor = '#9c9c9c'; | |
const activeColor = '#00bbff'; | |
const pressColor= '#6c6c6c'; | |
export const BorderWrap = styled.div` | |
position: relative; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer