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
--------- | |
function GoGo_OnLoad() | |
--------- | |
SLASH_GOGOMOUNT1 = "/gogo" | |
SlashCmdList["GOGOMOUNT"] = function(msg) GoGo_OnSlash(msg) end | |
SLASH_GOGOID1 = "/id" | |
SlashCmdList["GOGOID"] = function(msg) GoGo_Msg(GoGo_Id(msg)) end | |
this:RegisterEvent("VARIABLES_LOADED") |
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
#include <stdlib.h> | |
#include "grid.h" | |
#include "gbalib.h" | |
#include "game.h" | |
tile* tile_init(void){ | |
tile* t = (tile*) malloc(sizeof(tile)); | |
t->ge = CLEAR; | |
t->gep = NULL; |
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
#!/usr/bin/zsh | |
typeset -U fpath #make fpath unique | |
typeset -U path #make path unique | |
autoload -U colors && colors | |
autoload -Uz vcs_info | |
autoload -U tetris | |
autoload -U compinit | |
export EDITOR='vim' #set editor var, as well as zsh vi mode |
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
import java.util.Random; | |
public class Person2 { | |
/** | |
* This method should take the string | |
* input and return its characters in | |
* random order. | |
* given "gtg123b" it should return | |
* something like "g3tb1g2". | |
* |
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
ERROR=-Wall -Werror -Wextra -pedantic | |
STANDARD=-std=c++0x | |
CC=g++ | |
#implying this is where main is | |
OUTFILE=$(shell basename $(shell pwd)) | |
BUILDFILES=$(shell ls -R | grep "\.cpp") | |
all: run |
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
class AddDeviseLockableColumnsToUser < ActiveRecord::Migration | |
def change | |
change_table :users do |t| | |
t.lockable :maximum_attemps => 3, :lock_strategy => :failed_attempts, :unlock_strategy => :none | |
end | |
end | |
end |
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
#!/usr/bin/env sh | |
# Download 4chan images to the current directory. | |
# | |
# example: fourget http://boards.4chan.org/int/thread/48964967 | |
# | |
# requires httpie to be installed. | |
# The MIT License (MIT) | |
# |
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
#!/usr/bin/env python2 | |
from base64 import b32encode | |
from uuid import uuid4 | |
from sys import stdout | |
stdout.write(b32encode(uuid4().bytes)[:-6]) | |
if stdout.isatty(): | |
stdout.write('\n') |
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
Status | |
gst='git status' | |
gss='git status -s' | |
gstv='git status -v' | |
Remotes | |
gp='git push' | |
gl='git pull' | |
glom='git pull origin master' | |
ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' |
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
#!/bin/sh | |
# | |
# To enable this hook, place this file at: | |
# <repo-base-dir>/.git/hooks/pre-commit | |
printf "Updating submodules to origin master..." >&2 | |
git submodule update --rebase --remote | |
STATUS=$? | |
if [ $STATUS -eq 0 ]; then | |
echo "done" >&2 |