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/bash | |
MIN=$1 | |
MAX=$2 | |
NUM=$(( ( RANDOM % ( MAX - MIN + 1 ) + MIN ) )) |
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
var myDirective = function() | |
{ | |
return { | |
template: '<div data-ng-include="template.url"></div>', | |
link: function(scope) | |
{ | |
scope.template = { url: '' }; | |
} | |
}; | |
} |
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
#!/usr/bin/python | |
import array | |
f = open('uncompressed_test_adx30.swf', 'r') | |
input = f.read(8) | |
chars = [ord(ch) for ch in input] | |
nbits = chars[0] >> 3 |
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
var container = $('.markdown-body'), | |
classes = {}; | |
container.find('h2').each(function(i) | |
{ | |
var className = $(this).text().replace(/[^-a-zA-Z0-9_ ]+/g, '').trim(), | |
currentClass, next; | |
classes[className] = {}; | |
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 DURP <stdio.h> | |
#define DQRP static | |
#define DIRP int | |
#define DFRP main() | |
#define DVRP(X,Y) printf(X,Y) | |
#define DYRP(X) return X | |
#define DGRP { | |
#define DJRP } | |
#define DORP 0 | |
#define DNRP 1 |
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
var queued = [], scrollTimeout, waitForQueueTimeout; | |
function queueMore() { | |
Array.prototype.filter.call(document.querySelectorAll('a.UFILikeLink[title*="Like this"]'), function(a) { | |
if (queued.indexOf(a) === -1) { | |
queued.push(a); | |
} | |
}); | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
</head> |
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
<?php | |
$words = file('/usr/share/dict/words'); | |
function generateBTree($input) { | |
$tree = []; | |
$p = $tree; | |
foreach($input as &$word) { | |
$word = trim($word); |
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
<?php | |
class Result { | |
public $id; | |
public $foo = 'bar'; | |
function __construct() { | |
$this->id = rand(0,9999); | |
} | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Net; | |
using System.IO; | |
using System.Threading.Tasks; | |
using System.Runtime.Serialization; | |
using Newtonsoft.Json; |