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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: 'button', | |
result: 0, | |
click() { | |
this.set('result', Math.random()); | |
const result = this.get('result'); |
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
module.exports = { | |
root: true, | |
parser: 'babel-eslint', | |
parserOptions: { | |
ecmaVersion: 6, | |
sourceType: 'module' | |
}, | |
extends: 'airbnb-base', | |
env: { | |
'node': true |
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
const argv = require('minimist')(process.argv.slice(2)); | |
const readFileSync = require('fs').readFileSync; | |
const join = require('path').join; | |
const configFilePath = argv.config; | |
const config = JSON.parse(readFileSync(join(__dirname, '..', 'config.json'))); | |
if (configFilePath) { | |
// Read config file defined by param from disk | |
const configFile = readFileSync(configFilePath); |
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
// sample array | |
const rolling = [2, 4, 6, 8, 15]; | |
// Returns the average of an array of numeric values | |
function average(arr) { | |
// .reduce() with a simple callback creates the sum of all values inside the array | |
// dividing by the length of the array to get the average | |
return arr.reduce((a, b) => a + b) / arr.length; | |
} |
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
{ | |
"data": { | |
"id": "43917710-36f0-4e41-9767-786f744fb1bd", | |
"type": "containeroutlet", | |
"attributes": { | |
"position": 0, | |
"name": "Any Layout", | |
"is_searchable": false, | |
"help_text": "Any description for any layout", | |
"is_array": false |
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
mkdir -p ~/.ssh && echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0XXw4TcD9jAtxV1yPdF6jvdoRwM71lTmXcqUlGW2JuuwMtJH0u+qkxwNzdkfbDuBgd3dHv/a1JFSGNY15YEx1M4WhQqyL32uDgEGEUWXaA2fxzjO6bhmT9laZgvdwK+fLuBC0ppPe5ttZRZtKL2eUzKJq5IrnSA/D1SnOSJJvI49AoWTeTxmmqpGoYcZLrgnnrIJYRbKscA+xtf50HTmnDswtw+tVQNVJCIjJEyblLeglAoydLWsGdGWEtqHvJqVA5xQrhlMwCCXLwpsOtc/fpCoTbGFBRtPE2lCTorupX9TlUh8RJSKqgiv22I9PBEZTFSZ7KnkWiFkeLv6MXPxfQ== Florian Pichler <fp@ylk.gd>" >> ~/.ssh/authorized_keys |
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/sh | |
# ------------------------------------------------------ | |
# A small script to mount a volume, make a TimeMachine | |
# backup, wait for it to finish and unmount | |
# the volume again. Please adjust to your needs. | |
# ------------------------------------------------------ | |
# Mount the backup volume, adjust to your needs | |
#diskutil mount … |
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
'use strict'; | |
var argv = require('minimist')(process.argv.slice(2)); | |
var browserify = require('browserify'); | |
var browserSync = require('browser-sync'); | |
var buffer = require('vinyl-buffer'); | |
var frontmatter = require('front-matter'); | |
var gulp = require('gulp'); | |
// var path = require('path'); | |
var source = require('vinyl-source-stream'); |