Skip to content

Instantly share code, notes, and snippets.

/* Put your CSS here */
html, body {
margin: 20px;
font-size:0.5em;
}
/* Put your CSS here */
html, body {
margin: 20px;
}
get=Ember.get
App=Ember.Application.create()
App.ApplicationAdapter=DS.FixtureAdapter
App.IndexRoute=Ember.Route.extend
model:->
get(this,'store').find('post')
@Nav4e
Nav4e / node-walk.es6
Created July 15, 2022 02:49 — forked from lovasoa/node-walk.es6
Walk through a directory recursively in node.js.
// ES6 version using asynchronous iterators, compatible with node v10.0+
const fs = require("fs");
const path = require("path");
async function* walk(dir) {
for await (const d of await fs.promises.opendir(dir)) {
const entry = path.join(dir, d.name);
if (d.isDirectory()) yield* walk(entry);
else if (d.isFile()) yield entry;