Skip to content

Instantly share code, notes, and snippets.

View turusuke's full-sized avatar
🏠
Working from Home

turusuke turusuke

🏠
Working from Home
View GitHub Profile
@turusuke
turusuke / zsh_powerline.md
Created September 26, 2016 17:06
Zsh をデフォルトに設定して Powerline を適用するまで

Zsh

// Zsh起動
$ zsh
 
// リポジトリをclone
$ git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
 
// 既存の設定ファイルを退避(必要な場合)
<?php
$api_token = 'YOUR_API_TOKEN';
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, 'https://www.toggl.com/api/v8/time_entries/start');
curl_setopt($ch, CURLOPT_USERPWD, $api_token . ": api_token");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
#!/bin/sh
DBNAME="" #データベース名
DBUSER="" #データベースユーザ名
DBPASS="" #データベースパス
DBHOST="" #データベースホスト
DBPREFIX="" #テーブルのプレフィックス ex. wp_
# ############
@turusuke
turusuke / README.md
Last active December 20, 2015 05:19
UFO画像

色々使えるUFO画像

@turusuke
turusuke / PointAngle.js
Created June 16, 2013 05:32
CreateJSのPointクラスでオブジェクト間の角度を取得できるメソッド getDigree(度数法)とgetRadian(ラジアン)を利用できるようにしたプラグイン。
/**
* User: turusuke
* Date: 13/06/16
* version: 0.1
*/
(function(window) {
if (!createjs || !createjs.Point) {
return;
}