Skip to content

Instantly share code, notes, and snippets.

Avatar
🐇
ʕ ◔ϖ◔ʔ < I'm a Rubyist.

Masayuki Izumi izumin5210

🐇
ʕ ◔ϖ◔ʔ < I'm a Rubyist.
View GitHub Profile
View options.go
package main
import "fmt"
// WithPrefix
type prefixOption struct{}
func WithPrefix() interface {
GetOption
@djaiss
djaiss / gist:85a0ada83e6bca68e41e
Last active Feb 11, 2022
Block Twitter/Facebook in your /etc/hosts
View gist:85a0ada83e6bca68e41e
# Block Facebook IPv4
127.0.0.1 www.facebook.com
127.0.0.1 facebook.com
127.0.0.1 login.facebook.com
127.0.0.1 www.login.facebook.com
127.0.0.1 fbcdn.net
127.0.0.1 www.fbcdn.net
127.0.0.1 fbcdn.com
127.0.0.1 www.fbcdn.com
127.0.0.1 static.ak.fbcdn.net
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 16, 2022
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View gulpfile.coffee
gulp = require('gulp')
plumber = require('gulp-plumber')
util = require('gulp-util')
sass = require('gulp-ruby-sass')
rimraf = require('gulp-rimraf')
uglify = require('gulp-uglify')
minifyCSS = require('gulp-minify-css')
streamify = require('gulp-streamify')
size = require('gulp-size')
tap = require('gulp-tap')
@miyaki
miyaki / .latexmkrc
Last active Feb 20, 2016
~/.latexmkrc
View .latexmkrc
# $Date:$
$pdf_mode = 1;
$pdflatex = 'pdflatex -interaction=nonstopmode -synctex=1 %O %S';
$bibtex = 'bibtex %O %B';
# for japanese platex2e
# $pdf_mode = 3;
# $latex = 'platex -kanji=utf8 -interaction=nonstopmode -synctex=1 %O %S';
# $bibtex = 'pbibtex -kanji=utf8 %O %B';
@mhuggins
mhuggins / multiparameter_attribute_assignment.rb
Last active Sep 5, 2020
MultiparameterAttributeAssignment
View multiparameter_attribute_assignment.rb
# app/models/concerns/multiparameter_attribute_assignment.rb
module MultiparameterAttributeAssignment
include ActiveModel::ForbiddenAttributesProtection
def initialize(params = {})
assign_attributes(params)
end
def assign_attributes(new_attributes)
@hayajo
hayajo / changelog_en.md
Last active Feb 7, 2022
ChangeLog を支える英語
View changelog_en.md

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形