This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#nodebrew | |
if [[ -f ~/.nodebrew/nodebrew ]]; then | |
export PATH=$HOME/.nodebrew/current/bin:$PATH | |
nodebrew use v0.10 | |
fi | |
#pyenv | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.bashrc ] ; then | |
. ~/.bashrc | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - fetchSSID | |
- (id)fetchSSIDInfo { | |
NSArray *ifs = (__bridge_transfer id) CNCopySupportedInterfaces(); | |
NSLog(@"Supported interfaces: %@", ifs); | |
id info = nil; | |
for (NSString *ifnam in ifs) { | |
info = (__bridge_transfer id) CNCopyCurrentNetworkInfo((__bridge CFStringRef) ifnam); | |
NSLog(@"%@ => %@", ifnam, info); | |
if (info && [info count]) {break;} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)imageSelector:(NSArray *)statusList status:(NSString *)status index:(NSUInteger)index trueWord:(NSString *)word { | |
UIImageView *statusColor = statusList[index]; | |
if ([status isEqualToString:word]) { | |
statusColor.image = [UIImage imageNamed:@"green_circle"]; | |
} else { | |
statusColor.image = [UIImage imageNamed:@"red_circle"]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring | |
sudo reboot | |
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update | |
sudo apt-get install lxc-docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Google | |
ColumnLimit: 160 | |
IndentWidth: 4 | |
BreakBeforeBraces: Linux | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true | |
AllowShortFunctionsOnASingleLine: false | |
AllowShortLoopsOnASingleLine: false | |
AllowShortFunctionsOnASingleLine: false | |
SpacesInContainerLiterals: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https = require('https') | |
random = require('hubot').Response::random | |
BASE_URL = 'https://slack.com/api/chat.postMessage?token=xxxx-xxxxxxxxx-xxxxxxxxxx-xxxxxxxxx-xxxxxxx' #replace your Slack API key! | |
members = [ #replae and add your team members! | |
'aaa', | |
'bbb', | |
'ccc', | |
'ddd' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Xcode | |
# | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 | |
*.perspectivev3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import paho.mqtt.client as mqtt | |
def on_connect(client, userdata, flags, rc): | |
print("Connected with result code " + str(rc)) | |
client.subscribe("test/iOS") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
$script = <<SCRIPT | |
apt-get upgrade | |
apt-get update | |
echo "Asia/Tokyo" | sudo tee /etc/timezone |
OlderNewer