Skip to content

Instantly share code, notes, and snippets.

@gappy-jp
gappy-jp / stfuawsc_itg_day10.md
Last active May 9, 2018 04:28
MEAN Stackの環境を作ろう(Mac編)

MEAN Stackの環境を作ろう(Mac編)

どうも、社内アドベント10日目になりました。
カレンダーもどんどん埋まってきていて、とてもいい感じですね

今回から3週連続でWebアプリ作成過程の成果を共有したいと思います
(かんせいするとはかぎらない(´・ω・`))

これまで断片的に勉強していたAngularJSでなにか作りたいとおもっていた矢先に、こんな記事を見つけました。

MEAN(MongoDB, Express, AngularJS, Node.js)スタックが優れている理由 - Mozilla Open Web Day in Tokyoを終えて - albatrosary's blog

@niw
niw / FastKeyRepeat.m
Created January 4, 2013 08:39
Preview code to load Keyboard preference pane with a faster key repeat settings.
#import <PreferencePanes/PreferencePanes.h>
#import <objc/message.h>
void exchangeInstanceMethodImplementations(NSString *className, SEL originlSelector, SEL replacementSelector)
{
Class class = NSClassFromString(className);
if(class) {
Method originalMethod = class_getInstanceMethod(class, originlSelector);
Method replacementMethod = class_getInstanceMethod(class, replacementSelector);
method_exchangeImplementations(originalMethod, replacementMethod);
@erans
erans / get_lat_lon_exif_pil.py
Created May 20, 2011 21:16
Get Latitude and Longitude from EXIF using PIL
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
def get_exif_data(image):
"""Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags"""
exif_data = {}
info = image._getexif()
if info:
for tag, value in info.items():
decoded = TAGS.get(tag, tag)