Skip to content

Instantly share code, notes, and snippets.

Shinichiro Aska s-aska

Block or report user

Report or block s-aska

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View version_check.sh
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
View homo.pl
use strict;
use warnings;
my $homo = q/
_ayQm
_swmQQQQQ
samQQQ@T\"3QQW
jQWT?\"^ jQF]W
\"\" <WF ]W
_QP ]W
View NSDate+Justaway.m
#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
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Aug 29, 2015
maven version check
View version-check.rb
#!/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 Aug 29, 2015
LimeChat Theme
View Aska.css
html {
font-family: "Menlo";
background-color: #272822;
color: white;
word-wrap: break-word;
margin: 0;
padding: 3px 4px 10px 4px;
font-size: 12px;
}
View JFITransparent.h
#import <UIKit/UIKit.h>
@interface JFITransparent : UIView
@end
@s-aska
s-aska / git-merge.sh
Last active Aug 29, 2015
簡易に git merge する奴
View git-merge.sh
#!/bin/bash
# Usage: git-merge.sh [branch]
# ex: git-merge.sh master
set -ue
# set -e ... 途中でエラーが発生したら止める
# set -u ... 未定義の変数を参照したらエラー
if [[ $# == 0 ]];
View micro-autopager.js
(function (ns) {
'use strict';
var autopager = function (callbackOnce) {
setTimeout(function () {
if (autopager.bottom()) {
callbackOnce.call();
} else {
autopager(callbackOnce);
View micro-autopager-jq.js
(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()) {
You can’t perform that action at this time.