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
(defparameter *stack* | |
(list 0)) | |
(defun push-to-stack (&rest args) | |
"This pushes any number of arguments to the stack." | |
(dolist (arg args) | |
(push arg *stack*) | |
(print "ok"))) | |
(defun pop-stack (&rest args) |
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/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby | |
require 'fileutils' | |
require 'optparse' | |
require 'redcarpet' | |
current_time = Time.now | |
@pdir = "posts" | |
@output = "/var/www/blog/posts" | |
@template = "<center>Title: | |
<br>Date: **#{current_time}** | |
</center>" |
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
a = [1,2] | |
for i in 0..10 | |
a.push(a[-1] + a[-2]) | |
end | |
puts a |
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
!!! 5 | |
%title = "APP" | |
<link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'> | |
#header | |
APP | |
#menu | |
<br> | |
%a{:href => "/"} HOME | |
| |
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/bash | |
[[ $1 =~ .*org* ]] && \ | |
#thread=`echo $1 | cut -c25-` | |
thread=`echo $1 | sed "s/4chan.org//g" | sed "s/[^0-9]//g;s/^$/-1/;"` | |
echo $thread | |
echo "BOARD?" | |
read board | |
cd $board | |
mkdir $thread |
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
test |
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
require 'net/http' | |
require 'uri' | |
def isLive?(url) | |
uri = URI.parse(url) | |
response = nil | |
Net::HTTP.start(uri.host, uri.port) { |http| | |
response = http.head(uri.path.size > 0 ? uri.path : "/") | |
} | |
return response.code == "200" |
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
require 'isaac' | |
require 'lastfm' | |
api_key = "api_keyhere" | |
api_secret = "api_secret here" | |
lastfm = Lastfm.new(api_key, api_secret) | |
token = lastfm.auth.get_token | |
#puts api_key | |
#puts token | |
puts "http://www.last.fm/api/auth/?api_key=#{api_key}&token=#{token}" | |
sleep 10.0 |
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/bash | |
$tnumbertnumber=`echo $1 | cut -c32-` | |
mkdir $tnumber | |
cd $tnumber | |
while : | |
do | |
wget -e robots=off -E -nd -nc -np -r -k -H -D images.4chan.org,thumbs.4chan.org $1 | |
cp $tnumber.html index.html | |
sleep 10 | |
done |
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/bash | |
#Twitter tweeter by http://360percents.com | |
#v1.1 on May 12th 2011 | |
#Edited by TheShadowFog | |
PROGRAM='cmus' | |
#DIRECTORY="$HOME/log" | |
username="email" | |
password="password" |
NewerOlder