Skip to content

Instantly share code, notes, and snippets.

View dsk52's full-sized avatar

Daisuke Konishi dsk52

View GitHub Profile
@voluntas
voluntas / gist:73efe2f36ac1513c02a8
Created August 5, 2012 16:13
レビューのススメ?

レビューのススメ?

typo 死ぬほど多いので突っ込みまってます

バージョン:0.2.3
作者:@voluntas

考え方はコロコロ変わるタイプなのですが、最近はレビューが実はとても大事でとにもかくにもレビューなのでは?と思い始めてきています。

@mollifier
mollifier / try_zsh.md
Last active January 10, 2019 18:07
zsh を使おう

zsh を使おう

これは2013/02/16に開催された 俺聞け4 の発表資料です。

自己紹介

名前
三宅
@wrburgess
wrburgess / gist:5528649
Last active November 24, 2022 15:29
Backup Heroku Postgres database and restore to local database

Grab new backup of database

Command: heroku pgbackups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get url of backup download

Command: heroku pgbackups:url [db_key] --remote production

@geckotang
geckotang / memo.md
Last active September 5, 2016 02:53
親がdisplay: table-*;の時、子のimg {max-width: 100%; }が効かない

img要素に対してのmax-widthが機能しない時があった

ためしたのが

  • display: table-header-group;
  • display: table-footer-group;
  • display: table-cell;

だったのでtable-*としてる。

@udzura
udzura / tutorial.md
Created June 2, 2014 03:31
Hubot + CoffeeScript ではじめるやわらかプログラミング入門

やわらかプログラミング入門

  • Hubot であそぼう


始めに、地図を描く

@vexus2
vexus2 / joke.coffee
Created June 4, 2014 02:11
"ぬるぽ"に反応してガッしてくれるHubotスクリプト Slack内での表示に最適化済
# Description:
# Joke commands.
#
# Commands:
# ぬるぽ - You reply with, "ガッ" When you post a "ぬるぽ" word.
#
# Notes:
# ネタ/ジョーク系のbot全般
module.exports = (robot) ->
@taea
taea / how-to-esa.md
Last active March 4, 2022 00:42
esaのつかいかた(\( ⁰⊖⁰)/)

esa.io のつかいかた

Save as WIP Ship it! ボタンについて

esa-man.jpg

Save as WIP ボタン

  • 投稿画面、編集画面に Save as WIP というボタンがあります。これを押すと、「書き途中だけど保存して公開する」という意味になります。
  • WIP = Work in Progress (作業中)
  • Save as WIP で保存された記事は、一覧画面などの投稿タイトルに WIP と付いてグレーアウトした状態になります。
@rmoff
rmoff / gist:379e6ce46eb128110f38
Last active August 14, 2020 18:39
Kibana 3 and Elasticsearch 1.4 - CORS problem

Kibana 3 against ElasticSearch 1.4 throws an Connection Failed screen. The error text says to set http.cors.allow-origin, but it misses out the important http.cors.enabled: true

Working config:

$ grep cors elasticsearch-1.4.0.Beta1/config/elasticsearch.yml
http.cors.allow-origin: "/.*/"
http.cors.enabled: true
@Fishrock123
Fishrock123 / gulp.js
Last active August 1, 2021 11:19
gulp & browserify (+watchify +babelify)
var gulp = require('gulp')
var browserify = require('browserify')
var watchify = require('watchify')
var babelify = require('babelify')
var source = require('vinyl-source-stream')
var buffer = require('vinyl-buffer')
var merge = require('utils-merge')
@itkr
itkr / format-python.py
Last active October 21, 2017 06:55
format-python.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import shlex
import subprocess
_env = None