Skip to content

Instantly share code, notes, and snippets.

View motemen's full-sized avatar
🌴
On vacation

Hironao OTSUBO motemen

🌴
On vacation
View GitHub Profile
- ー
~ ~
: ー
; っ
a あ
ba ば
bd べん
be べ
bh ぶう
bi び
@003random
003random / ssrf.go
Last active October 2, 2023 21:13
Golang SSRF Protection/Prevention
package main
import (
"context"
"errors"
"log"
"net"
"net/http"
"strings"
"time"
@onishi
onishi / private.xml
Created October 9, 2014 03:05
Karabiner configuration for Slack
<?xml version="1.0"?>
<root>
<appdef>
<appname>SLACK</appname>
<equal>com.tinyspeck.slackmacgap</equal>
</appdef>
<item>
<name>For Slack CTRL+TAB=move unread channel</name>
<identifier>private.app_slack_move_channel_with_ctrl_tab</identifier>
<only>SLACK</only>
@jvns
jvns / interview-questions.md
Last active March 5, 2024 19:03
A list of questions you could ask while interviewing

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@nobuoka
nobuoka / java-for-android-app.markdown
Last active May 14, 2023 14:47
Android アプリ開発勉強会のために書いた Java の入門文書

Android アプリ開発のための Java 入門

MEMO

  • declaration は 「宣言」 と訳しているが、「定義」 の方が適しているような気がしなくもない。
  • 「インスタンス」 と 「オブジェクト」 という言葉を使うことがあるが、本文書中ではどちらも同じ意味で使用している。
  • String オブジェクト」 という表現は、「String クラスのインスタンス」 を意味している。 (Java に限らず一般的な表現だと思う。)

はじめに

@motemen
motemen / gist:5088348
Last active December 14, 2015 12:39
顔文字集
(;´Д`)
。゚(゚´ω`゚)゚。ピー
。゚( ゚^∀^゚)σ゚
\\\\└('ω')」////
( ╹ㅂ╹)
( ╹◡╹)
✌( 'ω' )
( ^o^)Г☎チンッ
⊂(^ω^)⊃
(´⊙ω⊙)
@vvakame
vvakame / Gruntfile.js
Created February 28, 2013 02:32
Slim3 + TypeScript なプロジェクトのGruntfile.jsとか run_server.sh も grunt start-server とかにするべきかなと思う
module.exports = function (grunt) {
grunt.initConfig({
typescript: {
client: { // --declarations --sourcemap --target ES5 --out client/scripts/main.js client/scripts/main.ts
src: ['src/main/typescript/Ignite.ts'],
dest: 'src/main/webapp/scripts/main.js',
options: {
target: 'es5',
base_path: 'src/main/typescript',
sourcemap: false,

!SLIDE

Deprecating the Observer Pattern

 

2012/10/21 ScalaBase in 名古屋

!SLIDE

@yoko
yoko / idea.js
Created April 24, 2012 04:53
アイデア思い付いたら書いてくところ
function foo(type) {
return type ?
function() {
return console.log(type);
} :
console.log(this.toString());
}
foo('foo')(); // コールバックで使う
foo.call('foo'); // 単独で使う
@rummelonp
rummelonp / bgm.md
Created February 14, 2012 03:35
最近の作業用 BGM 事情

最近の作業用 BGM 事情

iPod に入ってる音楽飽きてきた感あってネットラジオから適当に流してること多い
そろそろ音源買い漁りたい

音源垂れ流しとか発掘するやつ

Tubalr

http://www.tubalr.com/