using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
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
license: gpl-3.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
def name(locale = "default") | |
end | |
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
class MyJob < ActiveJob::Base | |
queue_as :urgent | |
rescue_from(NoResultsError) do | |
retry_job wait: 5.minutes, queue: :default | |
end | |
def perform(*args) | |
MyService.call(*args) | |
end |
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
gem 'active_model_serializers' | |
gem 'activeadmin' | |
gem 'jquery-ui-rails' |
- https://nparry.com/2015/11/14/letsencrypt-cloudfront-s3.html
- https://letsencrypt.readthedocs.org/en/latest/using.html#letsencrypt-auto
- http://marketing.intracto.com/renew-https-certificate-on-amazon-cloudfront
- https://www.paulwakeford.info/2015/11/24/letsencrypt/
- https://keyes.ie/aws-upload-letsencrypt-certificate/#comment-2445607246
If you just want to fix the issue quickly, scroll down to the "solution" section below.
If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g
, you may see an error like this:
$ npm update npm -g
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 genreTemplate from 'templates/genre.tvml.jade'; | |
import get from 'lib/api/get'; | |
import tvOS from 'lib/tvOS'; | |
export default function tvSeriesView({params}) { | |
get(`/genres/${params.genreSlug}`).then((viewData) => { | |
const doc = genreTemplate(viewData); | |
tvOS.pushDocument(doc); | |
}); | |
} |
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 React = require('react-native'); | |
var { | |
Text, | |
View, | |
TouchableHighlight, | |
AppRegistry, | |
StyleSheet | |
} = React; | |
var StopWatch = React.createClass({ |