This file contains 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
<script type="text/javascript">Raven.setUser({email: 'matt@example.com', id: '123'})</script> |
This file contains 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
export default ({options = {}}) => { | |
const { | |
min = Number.MAX_SAFE_INTEGER, | |
max = Number.MIN_SAFE_INTEGER, | |
step = 1, | |
} = options; | |
return `Range between ${min} and ${max} with a step of ${step}`; | |
}; |
This file contains 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
ArstistPageView = Backbone.View.extend({ | |
initialize: function(){ | |
// If model has changed, update view accordingly: | |
this.model.bind("all", this.render, this); | |
}, | |
render: function() { | |
// fetch the new rendered template from server | |
templateRequest = $.ajax({ url: "path/to/rendered/artist/template" }) | |
templateRequest.done(function(data) { | |
// render the template into dom |
This file contains 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
Data = require('data') | |
schema = | |
'/type/project': | |
'type': 'type' | |
'name': 'Project' | |
'properties': | |
'name': | |
'name': 'Name', 'unique': true, 'type': 'string', 'required': true | |
'tags': |
This file contains 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
from boto.cloudfront import CloudFrontConnection | |
def update_default_root_object(searched_origin, aws_access_key_id, aws_secret_access_key, default_root_object='index.html'): | |
""" sets default_root_object of an aws cloud front distribution | |
for futher information checkout http://boto.s3.amazonaws.com/ref/cloudfront.html | |
or http://github.com/boto/boto/tree/master/boto/cloudfront | |
""" | |
connection = CloudFrontConnection(aws_access_key_id=aws_access_key_id, aws_secret_access_key=aws_secret_access_key) |
This file contains 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
""" | |
Flask | |
----- | |
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good | |
intentions. And before you ask: It's BSD licensed! | |
Flask is Fun | |
```````````` |
This file contains 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
"use strict"; | |
import React, {Component} from 'react'; | |
import calcContentHeight from './dom-textarea-measure'; | |
class AutogrowingTextarea extends Component { | |
constructor(props) { | |
this.props = props; | |
this.state = {}; | |
this.textareaProps = sanitizeChildProps(props); |
This file contains 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 'dart:async'; | |
import 'dart:html'; | |
import 'package:web_ui/web_ui.dart'; | |
import 'package:escape_handler/escape_handler.dart'; | |
class State { | |
static const ACTIVE = const State._(0); | |
static const INACTIVE = const State._(1); |
NewerOlder