Skip to content

Instantly share code, notes, and snippets.

View rads's full-sized avatar

Radford Smith rads

View GitHub Profile
seta sensitivity "3"
seta cg_bob "0"
seta cg_kickscale "0"
seta cg_fov "105"
seta cg_zoomfov "50"
seta cg_noprojectiletrail "1"
seta cg_switchOnEmpty "1"
seta cg_truelightning "1"
seta r_dynamiclight "0"
seta r_drawSun "0"
// bobcycle bug hides the weapon model
alias hide_weapon_model "cl_bobcycle 9999999999999999999999999999999999999999"
alias show_weapon_model "cl_bobcycle .8"
// class reload (for spawn switching and recharging spy cloak)
alias reset_class "join_class heavyweapons; wait 350; join_current_class"
// auto-fire pistol (use fps_max 75 for best results)
alias +auto_pistol "switch_to_slot2; wait 10; alias fastfire fire; fire"
alias -auto_pistol "switch_to_slot2; alias fastfire "
(ns cljbot.pircbot
:extends org.jibble.pircbot.PircBot
:exposes-methods {setName superSetName}))
(defn -setName [this #^String name]
(.superSetName this name))
<!DOCTYPE html>
<title>HTML5 Video Playback Rate</title>
<script type="text/javascript">
function changeRate(speed) {
document.getElementById("my_video").playbackRate = speed;
function playVideo(videoid, url, lectureid) {
width: 1,
height: 1,
autohref: true,
target: "quicktimeplayer",
autoplay: true,
dontflattenwhensaving: true,
kioskmode: true,
cache: true,
function playVideo(videoid, url, lectureid) {
var spinner = $("<img>").attr({
src: "",
width: 16,
height: 16
window.setTimeout(function() {
window.onload = function() {
window.multi = function(dispatchFn) {
var methods = [];
var fn = function() {
var val = dispatchFn.apply(this, arguments);
return (typeof methods[val] !== "undefined" ? methods[val] : methods['default'])();
fn.method = function(dispatchVal, tailFn) {
function out = hw3_again(in, tileSize, n, overlap, errorTolerance)
in = double(in);
% Convert to RGB if greyscale.
if (size(in,3) == 1)
in = repmat(in, [1 1 3]);
% Initialize default values.
if nargin < 4
(defunk fetch
"Fetches objects from a collection.
Note that MongoDB always adds the _id and _ns
fields to objects returned from the database.
Optional arguments include
:where -> takes a query map
:only -> takes an array of keys to retrieve
:as -> what to return, defaults to :clojure, can also be :json or :mongo
:from -> argument type, same options as above
:skip -> number of records to skip