Skip to content

Instantly share code, notes, and snippets.

@gawaooooo
gawaooooo / .editorconfig
Created March 20, 2019 03:22
editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
insert_final_newline = true
max_line_length = 120
@gawaooooo
gawaooooo / config.fish
Created January 14, 2019 09:47
config fish
# git alias
balias g git
# NVM
set -gx nvm_prefix /usr/local/opt/nvm
# GO
# set the workspace path
set -x GOPATH $HOME/go
# add the go bin path to be able to execute our programs
@gawaooooo
gawaooooo / 0_reuse_code.js
Last active January 22, 2016 16:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gawaooooo
gawaooooo / AppDelegate.swift
Created March 29, 2015 15:10
iOSで姓名診断アプリを作る swift版
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var myNavigaionController: UINavigationController?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
@gawaooooo
gawaooooo / AppDelegate.swift
Last active August 29, 2015 14:17
iOSでおみくじを作る swift版
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
self.window?.backgroundColor = UIColor.whiteColor()
self.window?.rootViewController = ViewController()
self.window?.makeKeyAndVisible()
return true
}
@gawaooooo
gawaooooo / download.sh
Created March 12, 2014 04:47
指定URLから連番のファイルを取得するスクリプト作ってみた
#!/bin/bash
#
# @(#) download.sh ver.1.0.1 2014.03.12
#
# Usage:
# download.sh start end dir
# start - 取得するファイルの開始番号.
# end - 取得するファイルの終了番号.
# dir - 保存先ディレクトリ.
# isSleep - 1/スリープあり 0/スリープなし
@gawaooooo
gawaooooo / yokoyure.coffee
Created March 13, 2013 03:45
JavaScriptで横揺れ
count = 0
degree = 0
radian = 0
speed = 25
radius = 5
beforeLeft = @targetEnemy.css('left')
# centerX = parseInt(@targetEnemy.css('left'), 10) /2
x = (if beforeLeft is 'auto' then 0 else parseInt(beforeLeft, 10))
timer = setInterval(=>
if count <= 100
<html>
<head>
<meta charset="utf-8">
<title>Twitter + OAuth + JavaScript search api test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
"></script>
<script type="text/javascript" src="oauth.js"></script>
<script type="text/javascript" src="sha1.js"></script>
<script type="text/javascript">
// Twitterオブジェクトのコンストラクタ・プロトタイプ定義
@gawaooooo
gawaooooo / test.php
Last active December 12, 2015 08:38 — forked from hoPPen/test.php
<?php
echo "test";
echo "fork test.php";
?>
@gawaooooo
gawaooooo / Cakefile
Last active December 11, 2015 23:59
Cakefile 更新版
fs = require 'fs'
{exec, spawn} = require 'child_process'
{parser, uglify} = require 'uglify-js'
files = []
# 指定されたパスのファイルを取得する
get_file = (path) ->
text = ''
stat = fs.statSync(path)
if stat.isDirectory()