Skip to content

Instantly share code, notes, and snippets.

View astronaughts's full-sized avatar
💡
Working from home

Masahiro Ueno astronaughts

💡
Working from home
  • Chatwork
  • Osaka, Japan
View GitHub Profile
@pasupulaphani
pasupulaphani / after_res_hooks.js
Last active January 22, 2025 08:14
Mongoose connection best practices
var db = mongoose.connect('mongodb://localhost:27017/DB');
// In middleware
app.use(function (req, res, next) {
// action after response
var afterResponse = function() {
logger.info({req: req}, "End request");
// any other clean ups
@yashigani
yashigani / Rakefile
Last active August 29, 2015 13:56
Create ipa and upload it to testflight.
SDK = 'iphoneos7.0'
PRODUCT_NAME = ''
CODE_SIGN_IDENTITY = ''
PROVISIONING_PROFILE_UUID = ''
TESTFLIGHT_API_TOKEN = ''
TESTFLIGHT_TEAM_TOKEN = ''
desc "Clean build dir"
@voluntas
voluntas / mqtt.rst
Last active February 16, 2018 00:03
MQTT コトハジメ

MQTT コトハジメ

更新:2014-05-14
バージョン:0.0.12
作者:@voluntas
URL:http://voluntas.github.io/

とても詳しいまとめがありますので、ますはそちらを見ることをオススメします。

@vvakame
vvakame / chatwork.js
Created December 4, 2013 08:50
とりあえずChatWorkのAPIを雑に叩けた。
var https = require('https');
var req = https.request({
host: "api.chatwork.com",
path: "/v1/my/status",
method: 'GET',
headers: {
"X-ChatWorkToken":"xxxxx"
}
},
@tcnksm
tcnksm / docker_cheat.md
Last active January 14, 2025 15:09 — forked from wsargent/docker_cheat.md
Docker 虎の巻

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

@agemooij
agemooij / SnakifiedSprayJsonSupport.scala
Last active November 18, 2020 14:34
An example of how to customize the field mapping in spray-json to do generic transformation, in this case translating between camelcased Scala attributes and snakecase JSON attributes
/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2015 Andrew Snare, Age Mooij
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@dbankier
dbankier / Gruntfile.js
Last active December 20, 2015 05:09
Gruntfile for Alloy projects using jade and ltss This work in progress and likely to expand to include alloy commands, tishadow, xml2tss, etc, etc
module.exports = function(grunt) {
grunt.initConfig({
jade: {
compile: {
options: {
pretty: true
},
files: [{
expand: true,
src: ['**/*.jade'],
// http://ejohn.org/blog/simple-javascript-inheritance/
function Class() {}
Class.extend = function extend(props) {
var SuperClass = this;
function Class() {
if (typeof this.init === 'function') {
this.init.apply(this, arguments);
@studiomohawk
studiomohawk / making-of-cssradar-at-twitter.md
Last active April 26, 2016 16:21
Making of CSS Radar @ Twitter

Making of CSS Radar @ Twitter

CSS Radar @ Twitterの(短い)歴史

ほとんど更新されないのがコンセプトのCSS Radarの代わりにTwitterを使って海外のフロントエンドな情報を共有しはじめたのがいつのことだったかはあんまり定かではない。 当の本人は結構やってるんじゃないかと思ったりもするが、きっとそんなことはないのだろう。

紹介する記事のトピックや量は時間の経過と共に変化してきたが、変わらないことが1つだけ。
それはどの記事も必ず読んでから紹介すること。
今年に入って、Gistを使って5件ずつ紹介しはじめたのは、Twitterでは説明しきれていない部分が多すぎると思ったからだ。

@Gab-km
Gab-km / github-flow.ja.md
Last active April 23, 2025 04:19 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)