Skip to content

Instantly share code, notes, and snippets.

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
use strict;
use warnings;
my $homo = q/
_ayQm
_swmQQQQQ
samQQQ@T\"3QQW
jQWT?\"^ jQF]W
\"\" <WF ]W
_QP ]W
#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;
@s-aska
s-aska / 0_reuse_code.js
Created May 8, 2014 14:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@s-aska
s-aska / version-check.rb
Last active August 29, 2015 14:01
maven version check
#!/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)
@s-aska
s-aska / Aska.css
Last active August 29, 2015 14:02
LimeChat Theme
html {
font-family: "Menlo";
background-color: #272822;
color: white;
word-wrap: break-word;
margin: 0;
padding: 3px 4px 10px 4px;
font-size: 12px;
}
#import <UIKit/UIKit.h>
@interface JFITransparent : UIView
@end
@s-aska
s-aska / git-merge.sh
Last active August 29, 2015 14:04
簡易に git merge する奴
#!/bin/bash
# Usage: git-merge.sh [branch]
# ex: git-merge.sh master
set -ue
# set -e ... 途中でエラーが発生したら止める
# set -u ... 未定義の変数を参照したらエラー
if [[ $# == 0 ]];
(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()) {
(function (ns) {
'use strict';
var autopager = function (callbackOnce) {
setTimeout(function () {
if (autopager.bottom()) {
callbackOnce.call();
} else {
autopager(callbackOnce);