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
/** | |
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript | |
* https://gist.github.com/faisalman | |
* https://gist.github.com/AndreasHeiberg | |
* | |
* Copyright 2012-2015, Faisalman <[email protected]> | |
* Licensed under The MIT License | |
* http://www.opensource.org/licenses/mit-license | |
*/ |
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 requests | |
from elasticsearch import Elasticsearch | |
es = Elasticsearch() | |
# Return a response of the top 100 IAMA Reddit posts of all time | |
response = requests.get("http://api.reddit.com/r/iama/top/?t=all&limit=100", | |
headers={"User-Agent":"TrackMaven"}) | |
fields = ['title', 'selftext', 'author', 'score', |
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 angles = angular.module("angles", []); | |
angles.chart = function (type) { | |
return { | |
restrict: "A", | |
scope: { | |
data: "=", | |
options: "=", | |
id: "@", |
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 | |
// autoload_classmap.php @generated by Composer | |
$vendorDir = dirname(dirname(__FILE__)); | |
$baseDir = dirname($vendorDir); | |
return array( | |
'Andheiberg\\Auth\\InvalidPasswordException' => $vendorDir . '/andheiberg/auth/src/Andheiberg/Auth/Exceptions.php', | |
'Andheiberg\\Auth\\InvalidTokenException' => $vendorDir . '/andheiberg/auth/src/Andheiberg/Auth/Exceptions.php', |
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
jQuery.validator.setDefaults({ | |
errorPlacement: function(error, element) { | |
// hide any previous help... this could be "not visible to others" | |
$(element).closest('.controls').find('.help-inline').addClass('hidden'); | |
// if the input has a prepend or append element, put the validation msg after the parent div | |
if ($(element).parent().hasClass('input-prepend') || $(element).parent().hasClass('input-append')) { | |
error.insertAfter($(element).parent()); | |
// else just place the validation message immediatly after the input | |
} |
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 namespace Models; | |
use \AWS; | |
class File extends BaseModel { | |
/** | |
* The database table used by the model. | |
* | |
* @var string |
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"> | |
<title>My Logo · CodePen</title> | |
<!-- | |
Copyright (c) 2012 dylnhdsn, http://codepen.io/dylnhdsn | |
Permission is hereby granted, free of charge, to any person obtaining |
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 | |
#transcode.sh | |
#By Don Southard aka @binaryghost | |
# | |
#[UPDATE 6/01/2011 08:01:15PM] | |
#Idea and initialcode for Alfred progress bar by Andreas Heiberg | |
#Completly rewritten code by Don Southard | |
# | |
#[UPDATE 6/02/2011 08:58:09PM] | |
#Support for queueing, added information about queue status and ETA'S and the move the old file to trash feature |