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 { tracked } from '@glimmer/tracking'; | |
import Component from '@glimmer/component'; | |
export default class extends Component { | |
get result() { | |
return typeof this.args.arg1; | |
} | |
} |
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 { tracked } from '@glimmer/tracking'; | |
import Controller from '@ember/controller'; | |
import { action } from '@ember/object'; | |
import { VERSION } from '@ember/version'; | |
import { later } from '@ember/runloop'; | |
// Can't use this in Ember Twiddle yet because it | |
// needs to build with Embroider | |
// See https://github.com/ember-cli/ember-twiddle/issues/732 | |
//import { deepTracked } from 'ember-deep-tracked'; |
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
let log = () => {}; | |
try { | |
const debug = require('debug'); // if we have it | |
log = debug('scan-wifi-channels'); | |
} catch(e) {} | |
const { execSync } = require('child_process'); | |
const input = execSync('iwlist wlan0 scan').toString('utf-8'); | |
const lines = input.split('\n'); | |
const stations = []; |
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 | |
# FreeDNS updater script | |
# Adapted from https://freedns.afraid.org/scripts/update.sh.txt | |
# sudo apt install dnsutils wget | |
DOMAIN="foo.my-custom-domain.com" | |
API_KEY="put your API key (base64 string) here" | |
SHOULD_UPDATE=0 | |
# -f is the only argument supported right now (forces update even if address appears correct) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Dialog Demo</title> | |
</head> | |
<body> | |
<h1>Click the button</h1> | |
<button id="save">Show save dialog</button> | |
<pre id="output"></pre> |
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
### Keybase proof | |
I hereby claim: | |
* I am jacobq on github. | |
* I am jacobq (https://keybase.io/jacobq) on keybase. | |
* I have a public key ASBCStR5tBI73pYYyJPV117dkY1cIlCQGd_6q7bZbl8w-wo | |
To claim this, I am signing this object: |
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 | |
ORIGINAL_DIR=${pwd} | |
# Optional caching step | |
#export GIT_CACHE_PATH="${HOME}/.git_cache" | |
#mkdir -p "${GIT_CACHE_PATH}" | |
# Use electron's build cache | |
export SCCACHE_BUCKET="electronjs-sccache-ci" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<!-- All of the Node.js APIs are available in this renderer process. --> | |
We are using Node.js <script>document.write(process.versions.node)</script>, |
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 { createWriteStream } = require('fs'); | |
const intoStream = require('into-stream'); | |
const csvStringify = require('csv-stringify'); | |
const makePromise = () => { | |
let resolve; | |
let reject; | |
const promise = new Promise((resolve_, reject_) => { | |
resolve = resolve_; | |
reject = reject_; |
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'; | |
const Foo = Ember.Object.extend({ | |
array: [1,2,3] | |
}); | |
const Bar = Foo.extend({ | |
array: [2,3,4] | |
}); | |
const Baz = Foo.extend({ | |
//array: this._super.array.map(x => 1) |
NewerOlder