Skip to content

Instantly share code, notes, and snippets.

View p-chan's full-sized avatar
:octocat:
Be Internetable

P-Chan p-chan

:octocat:
Be Internetable
View GitHub Profile
@ishiduca
ishiduca / gist:2270042
Created April 1, 2012 00:32
convert shift_jis -> utf8 :node.js
var Iconv, iconv, httpRequest;
httpRequest = require('httpclient').httpRequest;
Iconv = require('iconv').Iconv;
//iconv = new Iconv('SHIFT_JIS', 'UTF-8//TRANSLIT//IGNORE');
iconv = new Iconv('CP932', 'UTF-8//TRANSLIT//IGNORE');
function gsURL (uri) {
return function (_uri) {
if (_uri && _uri !== uri) uri = _uri;
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@matchy256
matchy256 / rec_radiko.sh
Last active October 31, 2023 08:23 — forked from saiten/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
outdir="."
if [ $# -le 1 ]; then
@zspecza
zspecza / stylus-best-practices.md
Last active May 27, 2021 05:25
Stylus Best Practices

Stylus Best Practices

Introduction

This is a curated set of conventions and best practices for Stylus, an expressive, dynamic, robust and advanced CSS preprocessor. Frustrated with there not being a set of conventions set in place (that could be easily found), I set forth to find out on my own.

###作りたいものリスト

  • 2D格闘ゲーム
  • 2D格闘ゲーム, 対戦トレーニング支援 (ruby)
  • ゲームギルド支援(ログイン, 掲示板, 100人同時チャット, 全文検索)
  • mruby-msgpack
  • 格闘ゲームのトーナメントを自動作成支援
  • GroovyでAndroidを作成する本
  • wri.peのAndroidクライアント
  • git rebase -i のGUIツール(OS X)
@mizchi
mizchi / 「フロントエンドデベロッパー面接時の質問事項」への解答.md
Last active February 15, 2024 21:29
「フロントエンドデベロッパー面接時の質問事項」への解答
@addyosmani
addyosmani / package.json
Last active May 29, 2024 15:54
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@orleika
orleika / getIP.js
Created January 25, 2015 13:47
Node.jsでの接続元IPアドレス取得
var getIP = function (req) {
if (req.headers['x-forwarded-for']) {
return req.headers['x-forwarded-for'];
}
if (req.connection && req.connection.remoteAddress) {
return req.connection.remoteAddress;
}
if (req.connection.socket && req.connection.socket.remoteAddress) {
return req.connection.socket.remoteAddress;
}
@mizchi
mizchi / フロントエンドを楽にするために.md
Last active December 14, 2023 11:57
フロントエンドを楽にするために

フロントエンドを楽にするために

Qiitaを支えたい技術 at 時雨祭

About

  • HN: mizchi
  • Qiitaの方からきました(入社半年たったらしい)
  • Reactオジサンはそろそろ飽きてきた
  • Angularに興味が無いのでこっちにきた
@renechz
renechz / predawn.vim
Created June 9, 2015 18:40
vim port of predawn.tmTheme color scheme - https://github.com/jamiewilson/predawn
" Vim color file
" Converted from Textmate theme Predawn using Coloration v0.4.0 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif