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
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" |
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
// 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 " |
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
(ns cljbot.pircbot | |
(:gen-class | |
:extends org.jibble.pircbot.PircBot | |
:exposes-methods {setName superSetName})) | |
(defn -setName [this #^String name] | |
(.superSetName this name)) |
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
<!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> |
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 playVideo(videoid, url, lectureid) { | |
$("<embed>").attr({ | |
width: 1, | |
height: 1, | |
autohref: true, | |
target: "quicktimeplayer", | |
autoplay: true, | |
dontflattenwhensaving: true, | |
kioskmode: true, | |
cache: true, |
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 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() { |
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
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) { |
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 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 |
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
(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 |
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
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]. |
OlderNewer