Dependency | Version | New Version | Package manager |
---|---|---|---|
ember | 1.8.1 | 1.10.0 | Bower |
ember-resolver | 0.1.11 | 0.1.12 | Bower |
ember-data | 1.0.0-beta.12 | 1.0.0-beta.14.1 | Bower |
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
http://avdi.org/devblog/2011/04/11/screencast-taping-api-interactions-with-vcr/ | |
== What is it | |
Testing web apps. Modern web apps are more often then not interconnected and talking with at least one RESTful api. These can be social networking sites, url shorteners, payment gateways etc. | |
This presents an interesting problem when it comes to high level integration testing. There are a few different approaches to testing on this level. | |
* Live testing - Talking directly to external sources | |
Slow, makes continuous integration a pain | |
Dependant on the services, can be in maintenance mode |
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
dc = Arel::Nodes::NamedFunction.new "DATE", [ p[:created_at] ] ## second argument must be an array | |
## Sub this... | |
arel.project("DATE(`photos`.`created_at`)") | |
## For this... | |
arel.project(dc.to_sql) | |
arel.to_sql >> "SELECT DATE(`photos`.`created_at`) FROM `photos` INNER JOIN `votes` ON `photos`.`id` = `votes`.`photo_id`" |
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
rvm current | awk -F '[@-]' '{print $2"-"$3}' |
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
-server | |
-Xms512m | |
-Xmx2048m | |
-XX:MaxPermSize=512m | |
-XX:ReservedCodeCacheSize=256m | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseCompressedOops | |
-XX:+UseConcMarkSweepGC | |
-XX:+AggressiveOpts | |
-XX:+CMSClassUnloadingEnabled |
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
App.LibraryRoute = App.ApplicationRoute.extend({ | |
activate: function () { | |
//no longer enter | |
this._super(); | |
only called once on entering a route. | |
}, | |
beforeModel: function () { | |
// any state you want in place before the model is initialized, this is called before any model promises are resolved | |
// also could be used to conditionally prevent access to a route by throwing transition.abort |
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
#!/bin/bash | |
# https://your-team.slack.com/services/new/incoming-webhook | |
WEBHOOK_URL='' | |
CHANNEL='#dev' | |
USERNAME='sentry' | |
iCON_URL='https://slack.global.ssl.fastly.net/17635/img/services/sentry_128.png' | |
function post_message() { | |
payload="{'username': '$USERNAME', 'text': '$AT_USER $1', 'channel': '$CHANNEL', 'icon_url': '$ICON_URL'}" |
Chromium OS is cool. Chromium OS with crouton is cooler. Chromium OS with Docker is even cooler. This is specifically a guide for the Chromebook Pixel 2 (2015), but I can't think of any reason it wouldn't work with other devices.
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
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
/* | |
Importing natural into webpack (the node nlp toolkit) | |
This is just copy of natural's index.js with some exports commented out. | |
This way it works in webpack, however I haven't full tested it. | |
*/ | |
exports.SoundEx = require('natural/lib/natural/phonetics/soundex'); | |
exports.Metaphone = require('natural/lib/natural/phonetics/metaphone'); | |
exports.DoubleMetaphone = require('natural/lib/natural/phonetics/double_metaphone'); |
OlderNewer