Skip to content

Instantly share code, notes, and snippets.

View wozozo's full-sized avatar
😇
Hello

Yoichi Fujimoto wozozo

😇
Hello
  • Tokyo, Japan
  • 17:49 (UTC +09:00)
  • X @wozozo
View GitHub Profile
@qmihara
qmihara / 1.md
Last active July 9, 2018 09:48
MacBook 12-inch 2017 を購入したので Xcode のビルド時間を測ってみた

使用した 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 November 12, 2016 09:01
Exclusive request method predicate for Pyramid (>= 1.7)
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 July 21, 2016 14:15
Deep merge of JSON-like objects
const merge = (() => {
const duplicate = object => JSON.parse(JSON.stringify(object));
return (...objects) => Object.assign(...objects.map(duplicate));
})();
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 November 4, 2019 06:41
run it with `gunicorn --paste app.ini`
[app:main]
use = call:server:paster_main
[server:main]
use = egg:gunicorn#main
host = 0.0.0.0
port = 8000
workers = 1
'use strict';
var React = require('react-native');
var Fluxxor = require('fluxxor');
var {
AppRegistry,
TouchableHighlight,
StyleSheet,
Text,

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 May 13, 2022 13:46
S3 と非同期サムネイル作成 コトハジメ

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

更新

2013-12-08

バージョン

0.1.8

作者

@voluntas

URL

http://voluntas.github.io/

概要

@voluntas
voluntas / shiguredo_tech.rst
Last active April 11, 2024 08:30
時雨堂を支える技術

時雨堂を支える技術

日時

2024-04-11

時雨堂

バージョン

2024.4

URL

https://shiguredo.jp/

時雨堂クラウドサービスを支える技術

@neara
neara / forms.py
Last active April 17, 2024 19:54
Django Class Based Views and Inline Formset Example
from django.forms import ModelForm
from django.forms.models import inlineformset_factory
from models import Sponsor, Sponsorship
class SponsorForm(ModelForm):
class Meta:
model = Sponsor