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
#!/bin/sh | |
# Artisan ( Laravel's CLI tool ) find-up, selectable runner | |
# @depend | |
# peco - https://github.com/peco/peco | |
PHP=`which php` | |
CWD=`pwd` | |
ARTISAN="artisan" | |
COMMAND= |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// | |
// SWebSocket.cpp | |
// | |
// Created by Yoshiaki Sugimoto on 2014/08/04. | |
// | |
// | |
#include "SWebSocket.h" | |
USING_NS_CC; |
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
#include "network/HttpRequest.h" | |
#include "network/HttpClient.h" | |
#include "network/HttpResponse.h" | |
using namespace cocos2d::network; | |
HttpRequest* request = new HttpRequest(); | |
request->setUrl("http://example.com/external/image.png"); | |
request->setRequestType(HttpRequest::Type::GET); | |
request->setResponseCallback([this](HttpClient *sender, HttpResponse *response) { |
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 | |
/** | |
* Qdmail ver 1.2.6b | |
* E-Mail for multibyte charset | |
* | |
* PHP versions 4 and 5 (PHP4.3 upper) | |
* | |
* Copyright 2008, Spok in japan , tokyo | |
* hal456.net/qdmail : http://hal456.net/qdmail/ | |
* & CPA-LAB/Technical : http://www.cpa-lab.com/tech/ |
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
#!/bin/bash | |
set -eu | |
atexit() { | |
[[ -n $tmpdir ]] && rm -fr "$tmpdir" | |
[[ -n $sslconf ]] && rm -fr "$sslconf" | |
} | |
tmpdir=`mktemp -d` | |
sslconf=`mktemp` | |
trap atexit EXIT | |
trap 'trap - EXIT; atexit; exit -1' SIGHUP SIGINT SIGTERM |
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
#!/bin/sh | |
MPATH=$PWD | |
MAKECOMMAND=$(which make) | |
if [ "${MAKECOMMAND}" = "" ]; then | |
echo "make command could't find in your \$PATH. Did you install it?" | |
exit 1 | |
fi |
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
#!/bin/sh | |
### Github create release script | |
### This script requires following UNIX commands: | |
### - jq | |
### - file | |
### - curl | |
### - basename | |
### Those commands might not be installed on CI environment due to tiny OS package, | |
### So probably you need to install manually. |
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
#!/bin/sh | |
echo '玉子とじラーメン 650円(大盛800円)' | |
echo '玉子とじ担々麺 800円(大盛980円)' | |
echo 'もやしそば 750円(大盛980円)' | |
echo 'ワンタンメン 750円(大盛980円)' | |
echo '叉焼麺 800円(大盛980円)' | |
echo '天津麺 750円(大盛980円)' | |
echo '五目そば 750円(大盛980円)' | |
echo '酸辣湯麺 850円(大盛1000円)' |
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 main | |
import ( | |
"fmt" | |
) | |
func detect_nullbyte(str string) bool { | |
for _, b := range str { | |
if b == '\u0000' { | |
return true |