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
Categories = [ | |
"taking a break", #0 - this is the one to use when stepping away from the computer | |
"Thesis", #1 | |
"GAship", #2 | |
"IRR", #3 | |
"P2PU", #4 | |
"AVU", #5 | |
"goofing", #6 | |
"project 1", #7 | |
"project 2"] #8 - #9 is reserved for the status message |
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 'rubygems' | |
require 'youtube_g' | |
require 'pp' | |
client = YouTubeG::Client.new | |
allvids = Array.new | |
count = 1 | |
begin | |
while true | |
videos = client.videos_by(:user => 'vu', :page => count) | |
allvids = allvids + videos.videos |
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 | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
<?php | |
/** | |
* HTML output functions | |
* | |
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) | |
* @author Andreas Gohr <[email protected]> | |
*/ | |
if(!defined('DOKU_INC')) die('meh.'); | |
if(!defined('NL')) define('NL',"\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
function html_search(){ | |
global $conf; | |
global $QUERY; | |
global $ID; | |
global $lang; | |
print '<div class="toc"> | |
<div class="tocheader toctoggle" id="toc__header">Table of Contents</div> | |
<div id="toc__inside"> |
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/ruby | |
require 'net/http' | |
require "cgi" | |
# this runs on my server, and is used to check if a certain url links to a publicly available PDF | |
def checkOA(url) | |
url = url.gsub("http:/",'').gsub("http://",'') | |
uri, *path = url.split("/") | |
path = "/" + path.join("/") |
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
def growl(title,text='') | |
if text == '' | |
text = title | |
title = '' | |
end | |
`#{Script_path}/growlnotify -t "#{title}" -m "#{text}"` | |
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
@article{laurillard2009pedagogical, | |
Author = {Laurillard, Diana}, | |
Date-Added = {2013-01-18 20:15:33 +0000}, | |
Date-Modified = {2013-01-18 20:15:33 +0000}, | |
Doi = {10.1007/s11412-008-9056-2}, | |
Journal = {International Journal of Computer-Supported Collaborative Learning}, | |
Month = {mar}, | |
Number = {1}, | |
Pages = {5-20}, | |
Publisher = {Springer-Verlag}, |
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
(defn testa [] | |
(let [a (atom {})] | |
(println a) | |
(let [b (atom {:hi 1})] | |
(println a b) | |
(swap! a conj b)))) | |
(testa) |
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
(defn testa [] | |
(let [a {}] | |
(println a) | |
(let [b {:hi 1}] | |
(println a b) | |
(conj a b)))) |
OlderNewer