- AndroilStudioがインストールされているものとする
- AndroidStudioの初期設定(proxy等)は完了しているものとする
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
javascript:document.body.innerHTML=document.body.innerHTML.replace(/ー/g,'━━━(゚∀゚)━━━');focus(); |
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
import itertools | |
import copy | |
N = int(raw_input()) | |
num_list = list() | |
less_num_list = list() | |
less_pos_list = list() | |
for i in range(N): |
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 doPost(e){ | |
try { | |
parseInt(e.parameter.hoge); | |
} catch (er) { //失敗したらログを吐き出す | |
var logText = "例外が発生しました :" + er.message; | |
addLog(logText); | |
} | |
} | |
function addLog(text/*ログ内容*/) { | |
var spreadsheetId = "シートのID"; |
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 addLog(text/*ログ内容*/) { | |
var spreadsheetId = "シートのID"; | |
var sheetName = "シート1"; | |
var spreadsheet = SpreadsheetApp.openById(spreadsheetId); | |
var sheet = spreadsheet.getSheetByName(sheetName); | |
sheet.appendRow([new Date()/*タイムスタンプ*/,text]); | |
return text; | |
} |
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 CONSUMER_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | |
var CONSUMER_SECRET = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | |
var PROJECT_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | |
function AccessTwitter(endPoint,payload,method) { | |
var service = getTwitterService(); | |
if (service.hasAccess()) { | |
var url = 'https://api.twitter.com/1.1/'+endPoint+'.json'; | |
var options = { | |
method: method, |
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
javascript: | |
var te=document.getElementById("player-song-title"); | |
var t=te.innerHTML; | |
t=t.replace(/& /g,"&"); | |
var ae=document.getElementById("player-artist"); | |
var a=ae.innerHTML; | |
a=a.replace(/& /g,"&"); |
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
# -*- coding: utf-8 -*- | |
import json | |
import urllib2 | |
import oauth2 as oauth | |
def streaming(): | |
consumer_key = '' | |
consumer_secret = '' |