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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'VisitDays' | |
}); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
model: { | |
'firstName': { | |
'value': 'Chris', | |
'component': 'text-input' | |
}, | |
'age': { |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
count: 0, | |
lastSource: 'nowhere', | |
show: false, | |
actions: { | |
showModal() { | |
this.set('show', true); | |
}, |
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
process.env.APP_ID | |
process.env.APP_MONGO | |
process.env.AUTOUPDATE_VERSION | |
process.env.BIND_IP | |
process.env.CONSTRAINT_SOLVER_BENCHMARK | |
process.env.DDP_DEFAULT_CONNECTION_URL | |
process.env.DEPLOY_DOMAIN | |
process.env.DEPLOY_HOSTNAME | |
process.env.DISABLE_WEBSOCKETS | |
process.env.DISCOVERY_PORT |
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
This bit of code doesn't work: | |
<div ng-controller="MainCtrl" ng-csp> | |
<input type="text" ng-click="clickFunction()"> | |
</div> | |
function MainCtrl($scope) { | |
$scope.clickFunction = function(event) { console.log(event); } | |
} | |
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 pandas as pd | |
import MySQLdb | |
db_conn = MySQLdb.connect(host="HOST", user="USER", passwd="PW", db="DATABASE") | |
sql_str = "SELECT field FROM table" | |
df = pdb.io.sql.read_frame(sql_str, db_conn) |
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
window.fbAsyncInit = -> | |
FB.init | |
appId: "YOUR_APP_ID" # App ID | |
channelUrl: "//WWW.YOUR_DOMAIN.COM/channel.html" # Channel File | |
status: true # check login status | |
cookie: true # enable cookies to allow the server to access the session | |
xfbml: true # parse XFBML | |
FB.Event.subscribe "auth.statusChange", handleStatusChange |
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 pickle | |
import sys | |
print pickle.load(open(sys.argv[1], 'r')) |