This file contains hidden or 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 python | |
| # -*- coding: utf-8 -*- | |
| import urllib2 | |
| try: | |
| import simplejson as json | |
| except ImportError: | |
| import json | |
This file contains hidden or 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 BASE_URL = "http://hogefuga.com"; | |
| var DEFAULT_LIMIT = 200; | |
| var MAIL_ADDRESS = "[email protected]"; | |
| var checkApiMap = { | |
| '/api1' : DEFAULT_LIMIT, | |
| '/api2' : DEFAULT_LIMIT, | |
| '/api3' : 300, | |
| } | |
| function sendMail(overApiMap) { |
This file contains hidden or 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
| _map.createAnnotation({ | |
| latitude: lat, | |
| longitude: lng, | |
| markerIcon: 'images/hoge.png' | |
| }); |
This file contains hidden or 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 doGet(e) { | |
| var json = {"isSale": false}; | |
| var response; | |
| try { | |
| response = UrlFetchApp.fetch("http://www.misterdonut.jp/sale/index.html"); | |
| } catch(err) { | |
| return createOutput(json); | |
| } | |
| var regexp = /(\d+)年(\d+)月(\d+)日.*(\d+)月(\d+)日/; |
This file contains hidden or 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
| // http://nntenya.appspot.com/search?lat=35.671846&lng=139.768224 | |
| { | |
| "status": "success", | |
| "otsumami": true, // おつまみメニューの有無 | |
| "dessert": false, // デザートの有無 | |
| "hours": "【平日】: 11:00~23:00\n【土曜日】: 11:00~23:00\n【日・祝】: 11:00~23:00\n", // 開店時間 | |
| "phone": "03-5565-6903", // 電話番号 | |
| "address": "東京都中央区銀座3-9-4 草野ビル", // 住所 | |
| "lat": 35.671846, // 緯度 |
This file contains hidden or 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/sh | |
| FILE_NAME="theme" | |
| PROJECT_COLOR_FILE="$SRCROOT/$PROJECT_NAME/$FILE_NAME.clr" | |
| USER_COLOR_DIR="$HOME/Library/Colors/" | |
| # Generate color palette file | |
| "./Html2Clr" "./$PROJECT_NAME/$FILE_NAME.txt" | |
| # Copy to User directory color palette |
This file contains hidden or 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
| // NSNotification.Name拡張 | |
| extension NSNotification.Name { | |
| static let sample = Notification.Name(rawValue: "sample") | |
| // static let hoge = Notification.Name(rawValue: "hoge") | |
| // static let fuga = Notification.Name(rawValue: "fuga") | |
| } | |
| ///////////////////////////////////////////////////////////////////////////////////////////// | |
| // 通知発行側コード |
This file contains hidden or 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
| # https://www.youtube.com/watch?v=muWuHIPeXb4 | |
| brew tap ethereum/ethereum | |
| brew install ethereum | |
| npm install -g ethereumjs-testrpc | |
| npm install -g truffle | |
| testrpc -b 1 | |
| # new tab |
This file contains hidden or 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 true; do ( echo "HTTP/1.0 200 Ok"; echo; echo "ok" ) | nc -l 8000; [ $? != 0 ] && break; done |
This file contains hidden or 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
| # Civic Model (If needed) | |
| -keep class com.civic.sip.data.model.** { *; } | |
| # Google (firebase, gson, i18n, zxing) | |
| -keep class com.google.** {*;} | |
| # Dagger | |
| -dontwarn dagger.internal.codegen.** | |
| -keepclassmembers,allowobfuscation class * { | |
| @javax.inject.* *; |