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
document.addEventListener('deviceready', onDeviceReady); | |
function onDeviceReady() { | |
const store = CdvPurchase.store; | |
const { ProductType, Platform, LogLevel, Product, VerifiedReceipt } = CdvPurchase; // shortcuts | |
// We should first register all our products or we cannot use them in the app. | |
store.register([{ | |
id: 'demo_monthly_basic', |
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
$ git log origin/master..origin/develop --oneline | grep "Merge pull request" | grep -v "from refuel4/master" | sed "s/.*from [^\/]*\//Branch: /g" | |
# Example output: | |
# Branch: fix/4031-batman-hits-a-car | |
# Branch: feature/3953-iron-man-works-hard | |
# Branch: fix/3995-global-warming | |
# Branch: feature/3953-deploy-rocket-to-mars | |
# Branch: fix/4024-deadpool-got-cancer |
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
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
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
... | |
grunt.registerTask('serve', 'Compile then start a connect web server', function (target) { | |
if (target === 'dist') { | |
return grunt.task.run(['build', 'connect:dist:keepalive']); | |
} | |
grunt.task.run([ | |
'gitinfo', | |
'clean:server', | |
'ngconstant', |
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
/** | |
* dynamically loading all stories with .stories.js extension | |
*/ | |
import { configure } from '@kadira/storybook'; | |
require('es6-promise').polyfill(); | |
import 'babel-polyfill'; | |
const stories = require.context('../app/js/components', true, /.stories.js$/); | |
function loadStories() { |
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
/* CSS Helper ver 1.1.1 */ | |
/* FLEX from Google Polymer 0.5.2 */ | |
html | |
[layout] | |
&[horizontal], &[vertical] | |
display: -ms-flexbox | |
display: -webkit-flex | |
display: flex |
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
.hide-axis-x | |
.nvd3 .nv-axis.nv-x path | |
opacity: 0 | |
.hide-axis-y | |
.nvd3 .nv-axis.nv-y path | |
opacity: 0 | |
.dashed-userInteractiveGuideLine | |
.nvd3 .nv-interactiveGuideLine .nv-guideline | |
stroke-dasharray: 5,3 |
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
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files | |
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago | |
params = { | |
token: @token, |
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
'use strict'; | |
/** | |
* @ngdoc service | |
* @name app.services.service:RestService | |
* | |
* @description | |
* The common service to quickly setup other services to expose a restful-like interface | |
* | |
* How to use in a factory |
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
html | |
[layout] | |
&[horizontal], &[vertical] | |
display: -ms-flexbox | |
display: -webkit-flex | |
display: flex | |
&[horizontal][inline], &[vertical][inline] | |
display: -ms-inline-flexbox | |
display: -webkit-inline-flex | |
display: inline-flex |
NewerOlder