I hereby claim:
- I am kylef on github.
- I am kylef (https://keybase.io/kylef) on keybase.
- I have a public key whose fingerprint is BB7D D311 C34B 09C9 0FD1 1258 93AB E8C2 33AC D3D5
To claim this, I am signing this object:
/* A key/value dict system in C */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define TEST TRUE /* Comment this line out to compile without a main function (used when including into another application). */ | |
typedef struct dict_t_struct { | |
char *key; | |
void *value; |
#!/bin/sh | |
# /etc/init.d/craftbukkit | |
USERGROUP="sam:sam" | |
CBPATH="/home/sam/.craftbukkit" | |
PIDFILE=$CBPATH/pidfile | |
case "$1" in | |
start) |
import urllib, json | |
class SABnzbd(object): | |
""" | |
Usage: | |
>>> from sabnzbd import SABnzbd | |
>>> s = SABnzbd('sakar.local', 8080, '4488f2881b90d7753bef8fb9e1bc56b3') | |
>>> s.pause() # Pauses the downloads | |
>>> s.shutdown() # Shut's down SABnzbd+ | |
""" |
#!/usr/bin/env bash | |
# Automatically installs swiftenv and run's swiftenv install. | |
# This script was designed for usage in CI systems. | |
git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv | |
export SWIFTENV_ROOT="$HOME/.swiftenv" | |
export PATH="$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH" | |
if [ -f ".swift-version" ] || [ -n "$SWIFT_VERSION" ]; then | |
swiftenv install -s |
#!/bin/bash | |
# | |
### CocoaPods git-checkout hook | |
# | |
# This is a hook which you can install, it will automatically | |
# run `pod install` when you do a git pull/clone/checkout. | |
# | |
# The hook can be used to make CocoaPods usable with Xcode CI. | |
# | |
## Installation |
I hereby claim:
To claim this, I am signing this object:
tell application "Skype" | |
if (send command "GET MUTE" script name "MuteToggler") is equal to "MUTE ON" then | |
send command "SET MUTE OFF" script name "MuteToggler" | |
else | |
send command "SET MUTE ON" script name "MuteToggler" | |
end if | |
end tell |
+ (void)load { | |
/* We want to add our method after the application has finished launching | |
because that's when the key window should be setup. | |
We will add a method to that instance. */ | |
/* | |
WARNING | |
This would fail if another object was to key value observe the object | |
we are going change the class of before we change it. That means before |
When reporting any problems, please provide all the information outlined below so we can properly diagnose the problem.
# This simple python utility crawls the current directory and finds all images. | |
# It will then search the directory for files using these images and also mark | |
# any xcode projects which include these images. | |
# | |
# Allowing you to easily find images which are no longer used (or even images | |
# included in xcode and not used). | |
# | |
# Usage, cd into your repository and then run: | |
# | |
# curl https://gist.github.com/kylef/6316920/raw/images.py -# | python - |