- http://justaway.info/ を Google Chrome で開く
- 適当なところを右クリックして「要素の検証」を選択
- 「Developer Tools」というウィンドウが立ち上がる、「Console」というタブを選択
- 🚫の下の「> 」となっている部分の少し右をクリックし、以下のコードをペーストしEnterキーを叩く(この時画面をよく見ておいて下さい)
$('img').animate({top: '-1000px'})
$('img').animate({top: '-1000px'})
// | |
// GoogleChrome.swift | |
// Justaway | |
// | |
// Created by Shinichiro Aska on 5/18/15. | |
// Copyright (c) 2015 Shinichiro Aska. All rights reserved. | |
// | |
import UIKit |
import Foundation | |
import SwifteriOS | |
struct TwitterVia { | |
let name: String | |
let URL: NSURL? | |
struct Static { | |
static let regexp = NSRegularExpression(pattern: "<a href=\"(.+)\" rel=\"nofollow\">(.+)</a>", options: NSRegularExpressionOptions(0), error: nil)! | |
} |
import Foundation | |
class Notification { | |
// MARK: - Singleton | |
struct Static { | |
static let instance = Notification() | |
static let queue = dispatch_queue_create("Notification.Static.instance.cache", DISPATCH_QUEUE_SERIAL) | |
} |
import UIKit | |
import Security | |
class Keychain { | |
class func save(key: String, data: NSData) -> Bool { | |
let query = [ | |
kSecClass as String : kSecClassGenericPassword as String, | |
kSecAttrAccount as String : key, | |
kSecValueData as String : data ] |
package info.justaway.display; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.Config; | |
import android.graphics.BitmapShader; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.graphics.RectF; | |
import android.graphics.Shader; |
(function (ns) { | |
'use strict'; | |
var autopager = function (callbackOnce) { | |
setTimeout(function () { | |
if (autopager.bottom()) { | |
callbackOnce.call(); | |
} else { | |
autopager(callbackOnce); |
(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()) { |
#!/bin/bash | |
# Usage: git-merge.sh [branch] | |
# ex: git-merge.sh master | |
set -ue | |
# set -e ... 途中でエラーが発生したら止める | |
# set -u ... 未定義の変数を参照したらエラー | |
if [[ $# == 0 ]]; |
#import <UIKit/UIKit.h> | |
@interface JFITransparent : UIView | |
@end |