-
新しいrakeタスク assets:clean はプリコンパイルされたアセットを削除する。
-
--skip-gemfile
や--skip-bundle
なしでの、アプリケーションとプラグインのソース生成は、bundle installを走らせる -
jdbc*アダプターにとってのデータベースタスクを修正した
-
jdbcpostgresqlにとってのテンプレート生成
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
import staccato | |
import time | |
# must be replaced | |
consumer_key = "YOURS" | |
consumer_secret = "YOURS" | |
access_token_key = "YOURS" | |
access_token_secret = "YOURS" | |
TARGET = "username" | |
SLEEP_TIME = 5 |
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
ja: | |
errors: | |
messages: | |
expired: "の期限が切れましたので、新しくリクエストしてください" | |
# expired: "has expired, please request a new one" | |
not_found: "は見つかりませんでした" | |
# not_found: "not found" | |
already_confirmed: "は既に登録済みですのでログインしてください" | |
# already_confirmed: "was already confirmed, please try signing in" | |
not_locked: "は凍結されていません" |
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
using ICities; | |
namespace RandomTreeRotation | |
{ | |
public class RandomTreeRotationMod : LoadingExtensionBase, IUserMod | |
{ | |
public string Name | |
{ | |
get { return "Random Tree Rotation"; } | |
} | |
public string Description |
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
'''This script records your device's orientation (accelerometer data) for 5 seconds, and then renders a simple plot of the gravity vector, using matplotlib.''' | |
import motion | |
import matplotlib.pyplot as plt | |
from time import sleep | |
import console | |
def main(): |
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
javascript:(function(){let url=location.href;let title=document.title;url=encodeURIComponent(url);title=encodeURIComponent(title);window.open('https://twitter.com/intent/tweet?url='+url+'&text='+title,'_blank');})(); |
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
#include <iostream> | |
#include <Windows.h> | |
void OutputWindowsInformation() | |
{ | |
const auto hModule = ::LoadLibrary(TEXT("ntdll.dll")); | |
if (!hModule) return; | |
if (const auto address = ::GetProcAddress(hModule, "RtlGetVersion")) | |
{ |
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
// Amazon で使った金額の合計を出す奴 | |
// | |
// 使い方: | |
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽) | |
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く | |
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト | |
// 4. エンターで実行 | |
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う) | |
// 5. しばらく待つと alert で合計金額を表示 | |
// |
OlderNewer