Skip to content

Instantly share code, notes, and snippets.

View yuya's full-sized avatar

Yuya Hashimoto yuya

View GitHub Profile
@mkamakura
mkamakura / firebase.json
Created December 17, 2017 03:35
[Firebase Hosting,Functions] basic認証付きでサイトを公開する
{
"hosting": {
"public": "public",
"rewrites": [
{
"source": "**",
"function": "app"
}
],
"redirects": [{
@jkubecki
jkubecki / ExportKindle.js
Last active February 17, 2025 10:40
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
slack://channel?id=<channel/group/user-id>&team=<team-id>
@uupaa
uupaa / MobileSafari.ChangeLog.md
Last active August 29, 2015 14:01
Mobile Safari ChangeLog

iOS 5 MobileSafari

  • Web Workers が実装されました
  • XMLHttpRequest Lv2 が実装されました
  • CSS Position: fixed が実装されました
  • Appnize(Homeに追加)したページでもJITが有効になりました
  • <meter>, <detail>, <summary> が実装されました
  • <input type="..."> が range, date, time, datetime, month, datetime-local をサポートしました
  • Inline SVG をサポートしました
  • Token List API を実装しました。 body.classList.add("CSS-CLASS-NAME") が可能になりました
@rcknr
rcknr / UploadWithMedia.gs
Created July 27, 2013 18:04
Update Twitter status with an image with a single request in Apps Script
function oAuthConfig() {
var oAuthConfig = UrlFetchApp.addOAuthService("twitter");
oAuthConfig.setAccessTokenUrl("http://api.twitter.com/oauth/access_token");
oAuthConfig.setRequestTokenUrl("http://api.twitter.com/oauth/request_token");
oAuthConfig.setAuthorizationUrl("http://api.twitter.com/oauth/authorize");
// Register an app at https://dev.twitter.com/apps/new to get the following key and secret
oAuthConfig.setConsumerKey("key");
oAuthConfig.setConsumerSecret("secret");
}
@froop
froop / index.html
Created April 12, 2013 07:21
Web ブラウザのポップアップブロック問題
<body>
<script>
function popupNonBlock() {
var win = window.open("", "child", "width=400, height=300");
win.document.body.innerHTML = "loading...";
location.href = 'opener.html';
}
</script>
<a href="opener.html">block</a>
@STAR-ZERO
STAR-ZERO / gist:5335577
Last active December 15, 2015 22:49
HomebrewでMySQLのバージョンを指定して入れる

HomebrewでMySQLのバージョンを指定して入れる

$ cd /usr/local
$ brew versions mysql
5.6.10   git checkout aa3db07 Library/Formula/mysql.rb
5.5.29   git checkout 336c976 Library/Formula/mysql.rb
5.5.28   git checkout 5825f62 Library/Formula/mysql.rb
5.5.27   git checkout 93aecfa Library/Formula/mysql.rb
5.5.25a git checkout faaa6c1 Library/Formula/mysql.rb
@anchan828
anchan828 / gist:4697447
Created February 2, 2013 13:47
.assetファイル作成/保存ときのコード
public class Asset
{
public static void Save <T> (T asset) where T : ScriptableObject
{
Directory.CreateDirectory (DeployGateUtility.settingsFolderPath);
string assetPath = DeployGateUtility.settingsFolderPath + typeof(T).Name + ".asset";
T _asset = (T)AssetDatabase.LoadAssetAtPath (assetPath, typeof(T));
if (_asset == null)
AssetDatabase.CreateAsset (asset, assetPath);
AssetDatabase.SaveAssets ();
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
git clone git://github.com/wbond/sublime_package_control.git Package\ Control
cd Package\ Control
git checkout python3
# restart Sublime Text 3 and you should have Package Control working
@monsat
monsat / README.md
Last active December 11, 2015 08:08

neu.Node

概要

neu.Node(ノイノード)は、iOS デバイス用に Node.js 互換の API を実装したもので、これにより、アプリケーション開発者はさまざまな小さなサーバ(httpサーバ、チャットサーバ、プロキシサーバ、ゲームサーバ等)を自分の iOS アプリケーションの中に埋め込むことができるようになります。

neu.Node を使えば、iOS デバイスは単なる『クライアント』デバイスではなくなります。 デバイスはそれぞれネットワークの『ノード』となり、 分散コンピューティングのサービス の提供や、ユーザ・エクスペリエンスの向上に大きく貢献することになるのです。

neu.Node は今までに無いタイプのアプリケーションを可能にします。たとえば: