curl --include -i -H "Authorization: Token token=token-goes-here" 'http://example.com'
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 React from "react"; | |
import { render } from "react-dom"; | |
const ParentComponent = React.createClass({ | |
getDefaultProps: function() { | |
console.log("ParentComponent - getDefaultProps"); | |
}, | |
getInitialState: function() { | |
console.log("ParentComponent - getInitialState"); | |
return { text: "" }; |
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 debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
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
results = Merchant.collection.aggregate([ | |
{ "$group" => { | |
_id: { "confirmation_token" => "$confirmation_token"}, | |
recordIds: {"$addToSet" => "$_id" }, | |
count: { "$sum" => 1 } | |
}}, | |
{ "$match" => { | |
count: { "$gt" => 1 } | |
}} | |
]) |
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
$ Mongoid::VERSION | |
=> "4.0.2" | |
$ Mongoid::Sessions.default[:delivery_addresses].rename(:banned_addresses) | |
=> {"ok"=>1.0} |
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
######################### | |
# config/initializers/doorkeeper.rb | |
######################### | |
Doorkeeper.configure do | |
# Change the ORM that doorkeeper will use. | |
# Currently supported options are :active_record, :mongoid2, :mongoid3, :mongo_mapper | |
orm :active_record | |
# This block will be called to check whether the resource owner is authenticated or not. |
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
I know you've done everything possible to get to where you are in Ruby and in Dutch in a really short timeframe. | |
And no matter what anyone else says, | |
and no matter how anyone treats you, | |
you can know that you are putting the effort in, | |
and you've accomplished so much. | |
I'm more and more impressed every day. | |
Honestly, you've given me renewed drive to improve my development skills. |
NewerOlder