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
for i in {1..10}; do curl -L http://starwars.wikia.com/wiki/Special:Random 2>&1 | sed -n 's/<title>\(.*\) - Wookieepedia - Wikia<\/title>/\1/p'; done |
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
Function.prototype.method = function (name, func) { | |
this.prototype[name] = func; | |
return this; | |
}; | |
Function.method('mixin', function (properties) { | |
Object.keys(properties).forEach(function(property) { | |
if (!this.prototype.hasOwnProperty(property)) { | |
this.prototype[property] = properties[property]; | |
} |
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
{ | |
init: function(elevators, floors) { | |
// Find the closest elevator which isn't full | |
var findSuitableElevator = function(floor) { | |
var floorNum = floor.floorNum(); | |
var idealElevator = | |
_.chain(elevators) | |
.filter(function(elevator) { | |
return elevator.loadFactor() < 0.7; |
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> | |
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> | |
<!--[if IE 9]> <html class="no-js ie9" lang="en"> <![endif]--> | |
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline --> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" itemscope itemtype="http://schema.org/Product"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> |
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
# Find all strings using " unnecessarily | |
"([^#"'\n;]+)" | |
# Replace with ' | |
'\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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>This file will try and create a conversation through a CSRF exploit using the session!</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
</head> | |
<body> | |
<h1>This file will try and create a node in the cloud using a CSRF exploit using the session!</h1> | |
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
// A plugin to add Ajax communication with a RESTful JSON API. | |
// | |
// Depends on JSON.stringify() and jQuery's $.ajax() | |
// | |
// Expects models to have toJSON and fromJSON methods. | |
// ============================================================================ | |
// Define the maria.Repository class. The base class for Ajax/JSON Repositories. |
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
// ============================================= | |
// Custom Settings | |
// Last Updated:2013-10-3 | |
// ============================================= | |
// ============================================= | |
// File Paths | |
// ============================================= |
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
@import 'groundwork_settings'; | |
@import 'groundworkcss/groundwork'; | |
// ============================================= | |
// Web Fonts | |
// Last Updated:2013-8-16 | |
// ============================================= | |
@for $i from 1 through length($web-font-files) { | |
@font-face { |
NewerOlder