- new ember app &
yarn install ember install ember-cli-eslint@4
// ember-cli-build.js
let app = new EmberApp(defaults, {
eslint: {
testGenerator: 'qunit',
group: true,
rulesDir: 'eslint-rules',
extensions: ['js'],| import { tracked } from '@glimmer/tracking'; | |
| import { helper } from '@ember/component/helper'; | |
| import { action } from '@ember/object'; | |
| /** | |
| * @template T | |
| * @type {WeakMap<Promise<T>, AsyncData<T, any>>} | |
| */ | |
| const PROMISE_STATE = new WeakMap(); |
| { | |
| "app/initializers/*.js": { | |
| "type": "initializer", | |
| "alternate": "tests/unit/initializers/{}-test.js" | |
| }, | |
| "tests/unit/initializers/*-test.js": { | |
| "type": "initializer-test", | |
| "alternate": "app/initializers/{}.js" | |
| }, | |
| "app/instance-initializers/*.js": { |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| import 'package:flutter/services.dart'; | |
| import 'package:meta/meta.dart'; | |
| /// Note: | |
| /// [*] some functions are async simply because that schedules them after something else that should happen first for everything to work properly | |
| /// [*] you really should not use "ensureVisible" or "ensureErrorVisible" or "KeyboardListener" unless that field is already wrapped in "EnsureVisibleWhenFocused" | |
| /// you will get very unusual behavior |
| #!/bin/bash -e | |
| LIBTORRENT_BRANCH=master | |
| LIBTORRENT_CONFIG="--disable-debug" | |
| RTORRENT_BRANCH=master | |
| RTORRENT_CONFIG="--disable-debug --enable-ipv6" | |
| # Dependencies on Debian/Ubuntu: | |
| #sudo apt install \ | |
| # g++ make autoconf libtool pkg-config \ | |
| # zlib1g-dev libssl-dev libcurl4-openssl-dev \ |
| // tests/helpers/push-mirage-db-into-store.js | |
| import { registerAsyncHelper } from '@ember/test'; | |
| import { run } from '@ember/runloop'; | |
| let pushMirageDbIntoStore = function(server, store) { | |
| let tables = Object.keys(server.schema); | |
| tables.forEach(table => { | |
| if (server.schema[table].all) { | |
| let all = server.schema[table].all(); |
yarn installember install ember-cli-eslint@4// ember-cli-build.js
let app = new EmberApp(defaults, {
eslint: {
testGenerator: 'qunit',
group: true,
rulesDir: 'eslint-rules',
extensions: ['js'],| gem 'stackprof', require: false | |
| gem 'ruby-prof', require: false |
| " Put this in your .vimrc and whenever you `git commit` you'll see the diff of your commit next to your commit message. | |
| " For the most accurate diffs, use `git config --global commit.verbose true` | |
| " BufRead seems more appropriate here but for some reason the final `wincmd p` doesn't work if we do that. | |
| autocmd VimEnter COMMIT_EDITMSG call OpenCommitMessageDiff() | |
| function OpenCommitMessageDiff() | |
| " Save the contents of the z register | |
| let old_z = getreg("z") | |
| let old_z_type = getregtype("z") |
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
| { | |
| "app/initializers/*.js": { | |
| "type": "initializer" | |
| }, | |
| "app/models/*.js": { | |
| "type": "model", | |
| "alternate": "app/adapters/{}.js", | |
| }, | |
| "app/adapters/*.js": { | |
| "type": "adapter", |