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
{ | |
"videos" : [ | |
{ | |
"videoId" : "ID", | |
"title" : "title" | |
"streamingURL" : "http://www.url-to-video.it/video.mp4", | |
"publishDate" : "MM/GG/AAAA HH:mm", | |
"tags" : ["tag1", "tag2", "tag3"], | |
"abstract" : "abstract", | |
} |
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 x = 1; | |
x++; |
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
// includes bindings for fetching/fetched | |
var PaginatedCollection = Backbone.Collection.extend({ | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
typeof(options) != 'undefined' || (options = {}); | |
this.page = 1; | |
typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
}, | |
fetch: function(options) { |
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
# before this file is loaded, a locale should be set: | |
# | |
# In a browser environment, you can use: | |
# ```<script>__locale='en';</script>``` | |
# | |
# In a server environment (specifically node.js): | |
# ```global.__locale = 'en';``` | |
# normalize in-app locale string to "en" or "de-AT" | |
parts = @__locale.split('-') |
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
.main code { | |
font-size: 14px; | |
font-family: 'Droid Sans Mono', 'PT Mono'; | |
} | |
.main pre { | |
padding: 0px 20px; | |
border: 1px solid #ddd; | |
} | |
.main blockquote { | |
border-left: 2px solid #ff6600; |
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 argparse | |
from pymongo import MongoClient as Client | |
from bson import BSON | |
from bson import json_util | |
import json | |
import os | |
# mongo client |
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
`/** @jsx React.DOM */` | |
# Component structure: | |
# - DropdownButton | |
# - DropdownMenu | |
# - DropdownMenuItem | |
# refs to some utils | |
classSet = React.addons.classSet |
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
`/** @jsx React.DOM */` | |
classSet = React.addons.classSet | |
ReactCSSTransitionGroup = React.addons.CSSTransitionGroup | |
ReactTransitionGroup = React.addons.TransitionGroup | |
CarouselStateMixin = | |
propTypes: | |
items: React.PropTypes.array |
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
/* carousel */ | |
.carousel { | |
overflow: hidden; | |
position: relative; | |
height: 340px; | |
} | |
.carousel-item { | |
position: absolute; | |
background: #eee; |
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
// sketch.scriptPath is an absolute path from ~ to the parent directory of the .sketchplugin | |
var pluginPath = sketch.scriptPath.substring(0, sketch.scriptPath.lastIndexOf('/')); | |
var baseUrl = 'https://api.spotify.com/v1' | |
var el = getArray(); | |
if (el != null) { | |
var alert = createAlertBase('spotify'); | |
alert.setMessageText("Options"); |
OlderNewer