This file contains hidden or 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
# ruby morse-solver.rb "-...--.-." | |
bgn | |
bgte | |
bmae | |
bmen | |
bmete | |
bmr | |
bqe | |
btc | |
btke |
This file contains hidden or 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
/* Cool graphing program in T-SQL | |
* licensed under Creative Commons Attribution-ShareAlike | |
* | |
* Change line 17 to the equation you want to graph and | |
* line 18 to the equation of its slope (derivative). | |
* Example at: http://sqlfiddle.com/#!3/d41d8/12830 | |
*/ | |
WITH | |
XVals(X) AS ( |
This file contains hidden or 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
// Called whenever you press "Reload Comic" | |
function reload_comic(){fetch_and_set("http://prizes.prequeladventure.com/wlf2/qwtake-control-data.json", '#comic', "#votes", ".comicadjustment");} | |
function fetch_and_set(url, target, votes, domadjust ) { | |
jQuery.getJSON(url, function (data) { | |
/* Data is: | |
* f: Url with a bunch of data, seems to always be: | |
* "http://prizes.prequeladventure.com/wlf2/qwtake-control-crypt.txt" | |
* |
This file contains hidden or 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
define_weapon :magic_sword do | |
name 'Magic Sword' | |
description 'This sword burns 30 mana per hit' | |
damage 20 | |
durability 40 | |
enchant_with :knockback_II, :looting_III | |
on_damage do |attacker, target| | |
BURN = 30 |
This file contains hidden or 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
class A | |
{ | |
public static implicit operator int(A a) { return 0; } | |
public static bool operator -(bool a, A b) { return true; } | |
static void Main() | |
{ | |
// Including null | |
var a = true is bool? -new A() is bool? null : default(bool?); | |
This file contains hidden or 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
// Optionally switch to full sized chat | |
jQuery('#chatbox').attr('src', jQuery('#chatbox').attr('src').split('&')[0]); | |
// Fullscreen the chat and stream | |
jQuery('#chatbox').detach().appendTo('body').attr({'height': '100%', width: '300px'}).css('float', 'right'); | |
jQuery('#myPlayerElement_wrapper').detach().appendTo('body').removeAttr('style').css({'overflow': 'hidden', 'height': '100%'}); | |
// Hide everything else | |
jQuery('#site-content').hide(); |
This file contains hidden or 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
01001011 - 75 K | |
01001001 - 73 I | |
01001100 - 76 L | |
01001100 - 76 L | |
00100000 - 32 | |
01010011 - 83 S | |
01001111 - 79 O | |
01001110 - 78 N | |
00100000 - 32 | |
01000111 - 71 G |
This file contains hidden or 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/sh | |
# See http://www.davidrevoy.com/article193/guide-building-krita-on-linux-for-cats | |
# Directory setup | |
SOURCE=~/src/software/calligra | |
BUILD=~/src/software/krita | |
INSTALL=/opt/krita | |
mkdir -p $SOURCE $BUILD $INSTALL | |
# Install dependencies |
This file contains hidden or 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
#welcome { | |
width: 800px; | |
margin: 20px auto; | |
padding: 20px; | |
} | |
p.links > a { | |
text-decoration: none; | |
color: black; | |
margin-left: 10px; |
OlderNewer