開いているWebサイトが利用しているJSライブラリやサーバ、クラウドサービスなどを解析して表示してくれる。 どんなSPAライブラリで構成されているか、jQueryが使われているかなどをさっと確認したり、内部構成が隠蔽されているサービス(STUDIOなど)がどのような構成であるかをざっくり確認して、セキュリティリスクなどを見るなどに便利。
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
high 0xd83d, low 0xde04 | |
high 0xd83d, low 0xde03 | |
high 0xd83d, low 0xde00 | |
high 0xd83d, low 0xde0a | |
high 0x263a, low 0xfe0f | |
high 0x263a, low 0xfe0f | |
high 0xd83d, low 0xde09 | |
high 0xd83d, low 0xde0d | |
high 0xd83d, low 0xde18 | |
high 0xd83d, low 0xde1a |
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
+ (NSMutableDictionary *)getAddressWithID:(NSNumber *)recordId { | |
NSMutableDictionary *address = [NSMutableDictionary dictionary]; | |
ABAddressBookRef ab = ABAddressBookCreateWithOptions(NULL, NULL); | |
ABRecordRef person = ABAddressBookGetPersonWithRecordID(ab, (ABRecordID)[recordId intValue]); | |
// 名前 | |
NSString *firstName = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonFirstNameProperty)); | |
NSString *lastName = (__bridge_transfer NSString *)(ABRecordCopyValue(person, kABPersonLastNameProperty)); | |
ABMultiValueRef phoneRef = ABRecordCopyValue(person, kABPersonPhoneProperty); |
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
protected void registerClientCertToSSLSocket(Context context) throws Exception { | |
KeyManagerFactory keyManagerFactory; | |
final char[] PASSWORD = "password".toCharArray(); | |
InputStream inputStream; | |
try { | |
inputStream = context.getResources().getAssets().open("client.p12"); | |
KeyStore keyStore = KeyStore.getInstance("PKCS12"); | |
keyStore.load(inputStream, PASSWORD); | |
keyManagerFactory = KeyManagerFactory.getInstance("X509"); | |
keyManagerFactory.init(keyStore, PASSWORD); |
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
p "---array operator---" | |
# array object | |
sales = [5,8,4] | |
# replace | |
sales[0...2]=[1,2] | |
p sales # [1,2,4] | |
# insertion |
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
var request = require('request'), | |
cheerio = require("cheerio"); | |
exports.index = function(req, res){ | |
url = 'http://www.pplog.net/u/shoota'; | |
request(url, function (error, response, body) { | |
if(error) res.send(500); | |
var $ = cheerio.load(body); | |
console.log($('body').text()); |
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> | |
<head> | |
<title>jQuery.emoji-awesome.js</title> | |
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$.getJSON( | |
"https://api.github.com/emojis", | |
function(emojis){ | |
$('i.ge').each(function(){ |
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
// execute at node.js v.0.10.19 | |
/*---------------------------------------------------------------*/ | |
var toStrObj={}; | |
toStrObj.name = "shoota"; | |
toStrObj.age = 29; | |
toStrObj.body = {locale:'Japan',sex:'m',hasChildren:true}; | |
toStrObj.talk = function(){console.log('hello');}; | |
var toStr = JSON.stringify(toStrObj); |
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 | |
files=`find ~/Dropbox/カメラアップロード -type f | grep \.jpg` | |
( | |
## set delimiter | |
IFS=$'\n'; | |
for i in ${files}; do | |
width=`identify -format "%w" ${i}` | |
height=`identify -format "%h" ${i}` |
NewerOlder