new Promise((resolve, reject) => {})
const getDinosaur = (name) => {
return new Promise((resolve, reject) => {
resolve({name})| #!/usr/bin/env node | |
| import process from "process"; | |
| import { spawn } from "child_process"; | |
| import chokidar from "chokidar"; | |
| import { readPackageUp } from "read-pkg-up"; | |
| // import { run } from '@pnpm/plugin-commands-script-runners'; | |
| chokidar | |
| .watch(".", { |
| // require() some stuff from npm (like you were using browserify) | |
| // and then hit Run Code to run it on the right | |
| var d3 = require('d3') | |
| var cloud = require('d3-cloud'); | |
| var _ = require('lodash'); | |
| var stripCommonWords = require('strip-common-words'); | |
| var input = 'We’re happy to announce the release of React 0.14 today! This release has a few major changes, primarily designed to simplify the code you write every day and to better support environments like React Native. React React React!'; | |
| console.log(input); |
brew install git| function loadFile(filename) { | |
| let script = ... create script with file | |
| let promise = new Promise() | |
| script.onload = promise.resolve | |
| return promise | |
| } |
I hereby claim:
To claim this, I am signing this object:
| (function (root, factory) { | |
| if (typeof define === 'function' && define.amd) { | |
| define(['lodash'], factory); | |
| } else { | |
| root.amdWeb = factory(root._); | |
| } | |
| }(this, function (b) { | |
| var Fond = function(options) { | |
| this.update = function() {}; | |
| this.draw = function() {}; |
| var age_group = | |
| age > 70 ? 'se' : | |
| age > 60 ? 'si' : | |
| age > 50 ? 'fi' : | |
| age > 40 ? 'fo' : | |
| age > 30 ? 'th' : | |
| age > 20 ? 'tw' : | |
| 'un'; |