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
(:gen-class
:extends org.jibble.pircbot.PircBot
:exposes-methods {setName superSetName}))
(defn -setName [this #^String name]
(.superSetName this name))
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Video Playback Rate</title>
<script type="text/javascript">
function changeRate(speed) {
document.getElementById("my_video").playbackRate = speed;
}
</script>
</head>
function playVideo(videoid, url, lectureid) {
$("<embed>").attr({
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: "http://dev.videos.med.wisc.edu/javascripts/spinner.gif",
width: 16,
height: 16
});
spinner.insertAfter('a:contains("(2.0x)")');
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]);
end
% 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
javascript:(function(){readConvertLinksToFootnotes=true;readStyle='style-athelas';readSize='size-medium';readMargin='margin-wide';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';_readability_css.media='all';document.getElementsByTagName('head')[0].appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='http://lab.arc90.com/experiments/readability/css/readability-print.css';_readability_print_css.media='print';_readability_print_css.type='text/css';document.getElementsByTagName('head')[0].