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
cd ~ | |
# app deps | |
sudo yum -y install git | |
# erlang deps | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install ncurses-devel | |
sudo yum install -y fop | |
sudo yum install -y openssl-devel |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <hidapi.h> | |
#include <signal.h> | |
void printctrl(unsigned char * buffer); | |
signed short throttle(unsigned char *byte); | |
void cleanup(int signum); |
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 datatable(el, opts, callback) { | |
if (typeof(el) === 'undefined' || null === el) return; | |
var dt = $(el), | |
inputFilters = dt.find("tfoot input"), | |
selectFilters = dt.find("tfoot select"), | |
dateFilters = dt.find(".datepicker"), | |
allFilters = dt.find("tfoot input,select"); | |
var defaultOpts = { |
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
<html> | |
<head> | |
<title>Nested Form Example</title> | |
</head> | |
<body> | |
<center> | |
<h1>Order a pizza</h1> | |
<form id="pizza-form" method="POST" action="/pizzas"> | |
<div> |
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 python | |
def get_user_input(): | |
user_input = raw_input("Type in a number: ") | |
print ("You typed: %s") % user_input | |
convert_user_input_to_number(user_input) | |
def convert_user_input_to_number(user_input): | |
try: | |
user_input_as_integer = int(user_input) |
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 | |
EMAILS=foo@example.com bar@example.com | |
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while | |
read output; | |
do | |
echo $output | |
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 ) | |
parition=$(echo $output | awk '{ print $2 }' ) | |
if [ $usep -ge 75 ]; then |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
void clear(); | |
int main (void) { | |
printf("GET READY! This program is gonna blow your mind..."); | |
fflush(stdout); | |
usleep(1750000); |
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
ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzODQAAABhBDU3I+6QDd2MtoVvy0llGsA2thciAJVxfCG3Wx0xRZmE+yHcuzJWs1SYXiZw9mH0EOCFTrj5pXtcnhHYNfiYkF2TJCDxM3GbkTlXvW/OyCojHH5i86peEAPh6rAiSzHaPg== troynichols@Troys-MacBook-Pro.local |
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 | |
# -------------------------------------- | |
# Copyright 2013 Jon Riddle | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |