Skip to content

Instantly share code, notes, and snippets.

😇
Hello

Yoichi Fujimoto wozozo

😇
Hello
Block or report user

Report or block wozozo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@qmihara
qmihara / 1.md
Last active Jul 9, 2018
MacBook 12-inch 2017 を購入したので Xcode のビルド時間を測ってみた
View 1.md

使用した PC

MacBook 12-inch 2017 MacBook Air 11-inch Early 2014 MacBook Pro 13-inch Early 2015 MacBook Pro 13-inch 2017
CPU 1.4 GHz Intel Core i7 1.7 GHz Intel Core i7 2.7 GHz Intel Core i5 3.5GHz Intel Core i7
メモリ 16 GB 1867 MHz LPDDR3 8 GB 1600 MHz DDR3 16 GB 1867 MHz DDR3 16 GB 2133 MHz LPDDR3

対象プロジェクト

お仕事のプロジェクト

@moriyoshi
moriyoshi / exclusive_request_methods.py
Created Nov 12, 2016
Exclusive request method predicate for Pyramid (>= 1.7)
View exclusive_request_methods.py
from pyramid.config import Configurator
from pyramid.config.predicates import RequestMethodPredicate
from pyramid.config.util import as_sorted_tuple
from pyramid.compat import string_types, text_type
from pyramid.response import Response
from pyramid.httpexceptions import HTTPMethodNotAllowed
from pyramid.view import view_config
from pyramid.viewderivers import predicated_view, INGRESS
from webtest import TestApp
@bendc
bendc / merge.js
Created Jul 21, 2016
Deep merge of JSON-like objects
View merge.js
const merge = (() => {
const duplicate = object => JSON.parse(JSON.stringify(object));
return (...objects) => Object.assign(...objects.map(duplicate));
})();
View WikiHubのコミュニティでヘッダの背景色が暗めか明るめか判断するやつ.rb
class Community < ActiveRecord::Base
# @note https://www.w3.org/TR/AERT#color-contrast
# @return [false, true]
def has_dark_header_background_color?
red, green, blue = header_background_color_hex.scan(/../).map { |hex| hex.to_i(16) }
(red * 299 + green * 587 + blue * 114) < 125_000
end
end
@moriyoshi
moriyoshi / app.ini
Last active Nov 4, 2019
run it with `gunicorn --paste app.ini`
View app.ini
[app:main]
use = call:server:paster_main
[server:main]
use = egg:gunicorn#main
host = 0.0.0.0
port = 8000
workers = 1
View index.ios.js
'use strict';
var React = require('react-native');
var Fluxxor = require('fluxxor');
var {
AppRegistry,
TouchableHighlight,
StyleSheet,
Text,
View how_to_use_swift_in_terminal.md

How to use swift in your terminal

setup

First, install Xcode 6 beta.

And run it.

sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer
@voluntas
voluntas / django-s3-imagekit-celery.rst
Last active Jun 3, 2019
S3 と非同期サムネイル作成 コトハジメ
View django-s3-imagekit-celery.rst

S3 と非同期サムネイル作成 コトハジメ

更新:2013-12-08
バージョン:0.1.8
作者:@voluntas
URL:http://voluntas.github.io/

概要

@voluntas
voluntas / shiguredo_tech.rst
Last active Mar 7, 2020
時雨堂を支える技術
View shiguredo_tech.rst

時雨堂を支える技術

日時:2019-09-26
作:時雨堂
バージョン:19.09.0
URL:https://shiguredo.jp/

言語

@neara
neara / forms.py
Last active May 31, 2020
Django Class Based Views and Inline Formset Example
View forms.py
from django.forms import ModelForm
from django.forms.models import inlineformset_factory
from models import Sponsor, Sponsorship
class SponsorForm(ModelForm):
class Meta:
model = Sponsor
You can’t perform that action at this time.