Skip to content

Instantly share code, notes, and snippets.

View fand's full-sized avatar
💭
🔪

AMAGI / Jun Yuri fand

💭
🔪
View GitHub Profile
@koba04
koba04 / .gitignore
Last active December 21, 2018 02:21
karma + mocha + browserify + babel + power-assert
node_modules/
@nabinno
nabinno / im_nat_friedman_future_ceo_of_github_ama.md
Last active January 11, 2019 17:57
Reddit AMA - Nat Friedman, future CEO of GitHub(ama_compiler一部省略)

https://www.reddit.com/r/AMA/comments/8pc8mf/im_nat_friedman_future_ceo_of_github_ama/e0a6bsz/

Question Answer Link
Atomどうなるの? 今後もAtom、VS Codeの開発とサポート続けるよ。 Here
GitLab事件についてどうおもう? 悲しい。 Here
広告つけるの? つけない。 Here
競合のレポジトリーをみたりする? みないよ。従業員のアクセス制限用にポリシー、コントロールが既にある。 Here
OSSのファイナンスの手助けをする?PatreonやOpenCollectiveのようなものを統合するとか。 いい質問だね(考えておく的なニュアンス)。個人的には、昨年aigrant.orgを立ち上げて、AIプロジェクトのファイナンスを手助けしてる。 Here
GitLabとBitBucketのようにプライベートレポジトリを無料にする予定はある? (答
@BinaryMuse
BinaryMuse / restful.js
Last active March 17, 2019 08:22
Express API with Async/Await
import express from "express";
/**
* Takes a route handling function and returns a function
* that wraps it after first checking that the strings in
* `reserved` are not part of `req.body`. Used for ensuring
* create and update requests do not overwrite server-generated
* values.
*/
function checkReservedParams(routeHandler, ...reserved) {
@shuhei
shuhei / couple.rb
Created May 9, 2016 16:23
愛を生む二人を探して
# Extract meaningful bits.
# https://en.wikipedia.org/wiki/UTF-8#Description
def code_bits(bits)
bits.each_slice(8).with_index.map do |byte, i|
i == 0 ? byte[4..-1] : byte[2..-1]
end.flatten
end
# Returns unicode charactor from bits.
def bits_to_char(bits)
@Likk
Likk / main.go
Last active July 3, 2019 02:08
GoのバイナリをPerl/Ruby/PHPスクリプトとしても扱う (元ネタ https://codehex.hateblo.jp/entry/2019/07/02/090000 https://uzulla.hateblo.jp/entry/2019/07/02/191859)
package main
import (
"fmt"
"io/ioutil"
)
const script = `<?php
file_put_contents("php://stderr", "This is PHP world!!!".PHP_EOL);
__halt_compiler();
@hojberg
hojberg / app_route_target.js
Last active September 5, 2019 09:36
Simple Aviator/React example. Read more about Aviator here: https://github.com/swipely/aviator
/** @jsx React.DOM */
var AppRouteTarget = {
setupLayout: function () {
React.renderComponent({
<App className='page-content'>,
document.querySelector('body')
});
}
};
@ahomu
ahomu / .babelrc
Last active October 14, 2019 14:50
browserify(&watchify) で tsify --target=es6 と babelify を併用する
{
"modules": "commonStrict",
"sourceMaps": "inline",
"loose": true,
"blacklist": [
]
}
@udzura
udzura / tutorial.md
Created June 2, 2014 03:31
Hubot + CoffeeScript ではじめるやわらかプログラミング入門

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

  • Hubot であそぼう


始めに、地図を描く

@gam0022
gam0022 / fragmentShader.glsl
Created December 7, 2016 18:06
three.js r82の組み込みuniform/attribute
precision highp float;
precision highp int;
#define SHADER_NAME ShaderMaterial
#define GAMMA_FACTOR 2
#define NUM_CLIPPING_PLANES 0
#define UNION_CLIPPING_PLANES 0
uniform mat4 viewMatrix;
uniform vec3 cameraPosition;
#define TONE_MAPPING
#define saturate(a) clamp( a, 0.0, 1.0 )
@kariyayo
kariyayo / 00_すごいHaskellたのしく学ぼう!をScalaでやってみたメモ.md
Last active December 14, 2019 11:00
すごいHaskellたのしく学ぼう!をScalaでやってみたメモ