This file contains hidden or 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 Ability | |
include CanCan::Ability | |
def initialize(user) | |
alias_action :read, :create, :edit, :to => :modify | |
alias_action :read, :edit, :destroy, :to => :self_maintain | |
user ||= User.new | |
if user.team |
This file contains hidden or 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
!!! 5 | |
%html | |
%head | |
%title On It's Way | |
%link(rel="stylesheet" type = "text/css" href = "template.css") | |
%link(rel = "stylesheet" | |
type = "text/css" | |
href = "'http://fonts.googleapis.com/css?family=Roboto:700'") |
This file contains hidden or 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
require "bundler/capistrano" | |
require "capistrano-rbenv" | |
# Pre-compile assets | |
load 'deploy/assets' | |
set :application, "wattball" | |
set :repository, "[email protected]/USER/PROJECT" | |
set :branch, "master" |
This file contains hidden or 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/bash | |
# | |
# Possible Implementation for testing the wireless signal | |
# Outputs: | |
# {essid} {quality} | |
wicd-cli --wireless -d | grep -P -i "essid|quality" | cut -d " " -f 2 | awk '!/0$/{printf "%s ",$0}/0$/' |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include "malloc.h" | |
#include "chunk.h" | |
/* Globals */ | |
Chunk* chunks; |
This file contains hidden or 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
# earthquake.gem plugin | |
# post url to Pocket | |
require 'open-uri' | |
Earthquake.init do | |
_ = config[:ril] ||= {} | |
_[:apikey] ||= 'your-consumer-key' | |
# Sign Up for the Pocket API | |
# https://getpocket.com/developer/apps/new |
This file contains hidden or 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 <stdio.h> | |
#define LBR '{' | |
#define RBR '}' | |
#define INTEGER 1 | |
#define SET 5 | |
#define PAIR 6 | |
#define TREE 7 |
This file contains hidden or 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/bash | |
# ------------------------------------------------------ | |
# file: $HOME/.scripts/dzenstat.sh | |
# author: Ramon Solis - http://cyb3rpunk.wordpress.com | |
# modified: June 2011 | |
# vim:fenc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=sh: | |
# ------------------------------------------------------ | |
# ------------------------- |
This file contains hidden or 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/bash | |
# Some simple read and write tests using dd | |
# Write | |
echo "Write" | |
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc | |
# Read Without Cache | |
echo "Read w/o Cache" | |
sudo echo 3 > sudo /proc/sys/vm/drop_caches |
This file contains hidden or 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
*.pydevproject | |
.project | |
.metadata | |
bin/** | |
tmp/** | |
tmp/**/* | |
#Back ups | |
*.tmp | |
*.bak |