Skip to content

Instantly share code, notes, and snippets.

View dagezi's full-sized avatar

Takeshi Sasaki dagezi

View GitHub Profile
@notnoopci
notnoopci / gradle.yml
Created January 31, 2014 16:07
Circle Recepies
# Sample setting gradle version
dependencies:
cache_directories:
- "~/gradle-1.9"
pre:
- "[[ -d ~/gradle-1.9 ]] || ( curl -L -o /tmp/gradle.zip 'http://services.gradle.org/distributions/gradle-1.9-bin.zip' && unzip -d ~ /tmp/gradle.zip )"
- echo 'export PATH=~/gradle-1.9/bin:$PATH' >> ~/.circlerc
@karino2
karino2 / test.html
Last active October 1, 2015 01:58
EquationPad
<html>
<head>
<meta charset="UTF-8">
<style type="text/css">
.selectedTarget { background-color: red}
#halo input {
background: #88ffff;
border-radius: 8px;
margin: 0;
width: 3em;
@masatomo
masatomo / github-url.el
Last active December 31, 2015 09:58 — forked from dagezi/github-url.el
Create a url to github from your local code.
moved to https://github.com/quipper/github-url.el
@yuya-takeyama
yuya-takeyama / music.md
Last active December 14, 2019 21:16
外界の情報を遮って無になるための音楽 https://twitter.com/yuya_takeyama/status/877721693862502402

前は Apple Music 使ってましたが、家では Chromecast で聴きたいという理由で Google Play Music に変えました。 仕事中は歌詞が頭に入ってきちゃうので日本語詞の曲はあまり聴きません。 (仕事以外の時には聴きます)

外界の情報を遮る用のうるさいやつ

@kmizu
kmizu / gist:1876800
Last active December 22, 2019 00:05 — forked from gakuzzzz/gist:1865400
Scala環境構築

Scala 開発環境構築手順

前提条件

  • JDKがinstall済みであること
  • java コマンドに環境変数Pathが通っていること
@ksasao
ksasao / ContactTracingAppFinder.ino
Last active December 7, 2020 18:33
接触確認アプリが有効になっているかを調べるアプリです。数十センチ程度まで近づくと素早く点滅します。M5 Atom 用です。https://twitter.com/ksasao/status/1274385507565178885 参照。Apache 2.0ライセンスです。
#include <M5Atom.h>
#include <BLEDevice.h>
// Contact Tracing Bluetooth Specification (Apple/Google)
// https://blog.google/documents/58/Contact_Tracing_-_Bluetooth_Specification_v1.1_RYGZbKW.pdf
const char* uuid = "0000fd6f-0000-1000-8000-00805f9b34fb";
bool found = false;
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {
@teshi04
teshi04 / adb-screencap.sh
Created July 4, 2014 05:30
adbでスクリーンショットを撮るやつ
#!/bin/sh
DATE=`date '+%y%m%d%H%M%S'`
adb shell screencap -p /sdcard/screen-${DATE}.png
adb pull /sdcard/screen-${DATE}.png
adb shell rm /sdcard/screen-${DATE}.png
@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc

@domenic
domenic / promises.md
Last active March 31, 2024 14:07
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@pixelhandler
pixelhandler / pre-push.sh
Last active April 8, 2024 01:04
Git pre-push hook to prevent force pushing master branch
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`