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.Controller.extend({ | |
appName:'Checkbox focus test', | |
actions: { | |
focusInAction() { | |
let args = Array.from(arguments) | |
let alerts = this.get('alerts'); | |
this.set('alerts', alerts + '\nFocused: ' + args.join(', ')); |
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.Controller.extend({ | |
appName: 'Ember Twiddle', | |
}); |
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'; | |
import AFrame from 'aframe'; | |
import Animation from 'npm:aframe-animation-component'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
annotations: | |
pipelineName: edges | |
creationTimestamp: 2019-01-26T01:48:54Z | |
generation: 4 | |
labels: | |
app: pipeline-edges-v1 | |
component: worker |
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
// all measurements in inches, because AMERICA | |
function main () { | |
// standard 4" sewer pipe | |
const innerRadius = 4/2; | |
const outerRadius = 4.215/2; | |
const length = 20 * 12; // by "6m" i assume you mean 20ft? | |
return difference( | |
circle({r: outerRadius, center: 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
#! /bin/bash | |
set -e | |
usage() { | |
echo " | |
Usage: | |
$0 <base NodePort> BASE_MANIFEST | |
Takes BASE_MANIFEST (which should be the JSON result of |
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
[ | |
[ 1, 2, 3, 4, 5], | |
[ 6, 7, 8, 9, 10], | |
[11, 12, 13, 14, 15], | |
[16, 17, 18, 19, 20], | |
[21, 22, 23, 24, 25] | |
] |
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
#!/usr/bin/env python | |
""" | |
Submit a list of issues to GH | |
Issues are separated by two blank lines (three newline characters) | |
The first line is used as the title | |
""" | |
# py2/3 compat |
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 Controller from '@ember/controller'; | |
import { tracked } from '@glimmer/tracking'; | |
export default class ApplicationController extends Controller { | |
queryParams = ['projects', 'roles']; | |
@tracked projects = []; | |
@tracked roles = []; | |
} |
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 Controller from '@ember/controller'; | |
import { action } from '@ember/object'; | |
import { tracked } from '@glimmer/tracking'; | |
const center = {lng: 79.3832, lat: 43.6532}; | |
function generateModel() { | |
return Array(3).map(pt => ({ | |
lng: center.lng + Math.random() / 10, |