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
[ | |
{ | |
"id": 1, | |
"name": "Waterfowl (Ducks, Geese, Swans)", | |
"order": 0, | |
"vispedia_id": "svqCRQQpMbCZumzhwxhEuC", | |
"children": [ | |
2, | |
3, | |
4, |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import models, migrations | |
flag_name = 'the_flag_is_nigh' | |
Flag = models.get_app('waffle').Flag | |
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 sys | |
import boto | |
from boto.s3.connection import S3Connection | |
from boto.s3.key import Key | |
file_name = sys.argv[1] | |
AWSAccessKeyId = '' | |
AWSSecretKey = '' |
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
describe 'UploadList', -> | |
beforeEach -> | |
angular.mock.module('ca.uploads') | |
angular.mock.module('angularLocalStorage.mock') | |
beforeEach inject ($rootScope, $controller, $http, $httpBackend, $upload, $timeout, mockStore) -> | |
@scope = $rootScope.$new() | |
@httpBackend = $httpBackend | |
@callbacks = | |
success: sinon.stub() |
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
#disqus_thread { | |
padding: 12px 10px 0; | |
margin: 0 auto; | |
max-width: 474px; | |
} | |
@media screen and (min-width: 673px) { | |
#disqus_thread { | |
padding-left: 30px; | |
padding-right: 30px; |
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
#disqus_thread { | |
padding: 12px 10px 0; | |
margin: 0 auto; | |
max-width: 474px; | |
} | |
@media screen and (min-width: 673px) { | |
#disqus_thread { | |
padding-left: 30px; | |
padding-right: 30px; |
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
angular.module('directives.fileWatcher', []) | |
.directive('fileWatcher', ($parse) -> | |
restrict: 'A' | |
scope: | |
fileWatcher: '&' | |
link: (scope, element, attrs) -> | |
if not element.is(':file') | |
throw new Error('fileWatcher directive must be attached to a file input element.') | |
if attrs.fileWatcher is '' | |
throw new Error('fileWatcher needs a callback function for adding files') |
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 osc = require('node-osc'); | |
var io = require('socket.io-client'); | |
var socket = io.connect('tulsadalek.com', function() { | |
console.log(arguments); | |
}) | |
var OSCclient = osc.Client('127.0.0.1', 9001); | |
socket.on('connect', function(){ |
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 get_post_type_template( $context = null ) { | |
$type = (string) get_post_type( get_the_ID() ); | |
$format = (string) get_post_format( get_the_ID() ); | |
do_action( "get_post_type_template_{$type}", $format, $context ); | |
$templates = array(); | |
if ( !empty($format) ){ |
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
toObject = (item) -> | |
return item unless item.toObject | |
json = item.toObject() | |
for key, val of json | |
if _.isArray val | |
json[key] = _.map val, (element) -> toObject element | |
else |
NewerOlder