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
while [ 1 ] | |
do | |
OK=`curl "https://play.google.com/store/apps/details?id=info.justaway" -sS | grep "> 1.0.xx <"` | |
if [ "$OK" ]; then | |
curl -d 'message=ok' http://xxx.7kai.org/ | |
exit | |
fi | |
sleep 60 | |
done |
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 strict; | |
use warnings; | |
my $homo = q/ | |
_ayQm | |
_swmQQQQQ | |
samQQQ@T\"3QQW | |
jQWT?\"^ jQF]W | |
\"\" <WF ]W | |
_QP ]W |
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 "NSDate+Justaway.h" | |
@implementation NSDate (Justaway) | |
+ (instancetype)dateWithString:(NSString *)string | |
{ | |
static NSDateFormatter *formatter; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
formatter = NSDateFormatter.new; |
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
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'uri' | |
def compile(library) | |
package, name, version = library.split(':') | |
filepath = package.gsub(/\./, '/') + '/' + name | |
url = "http://search.maven.org/remotecontent?filepath=#{filepath}/maven-metadata.xml" | |
res = Net::HTTP.get URI.parse(url) |
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
html { | |
font-family: "Menlo"; | |
background-color: #272822; | |
color: white; | |
word-wrap: break-word; | |
margin: 0; | |
padding: 3px 4px 10px 4px; | |
font-size: 12px; | |
} |
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 <UIKit/UIKit.h> | |
@interface JFITransparent : UIView | |
@end |
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 | |
# Usage: git-merge.sh [branch] | |
# ex: git-merge.sh master | |
set -ue | |
# set -e ... 途中でエラーが発生したら止める | |
# set -u ... 未定義の変数を参照したらエラー | |
if [[ $# == 0 ]]; |
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
(function (ns, w, d, $) { | |
'use strict'; | |
var win = $(w); | |
var doc = $(d); | |
var autopager = function () { | |
setTimeout(function () { | |
if ((doc.height() - (win.scrollTop() + win.height())) < win.height()) { |
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
(function (ns) { | |
'use strict'; | |
var autopager = function (callbackOnce) { | |
setTimeout(function () { | |
if (autopager.bottom()) { | |
callbackOnce.call(); | |
} else { | |
autopager(callbackOnce); |
OlderNewer