Skip to content

Instantly share code, notes, and snippets.

Ian MacLeod nevir

Block or report user

Report or block nevir

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nevir
nevir / license_generator.js
Last active Aug 31, 2018 — forked from davidtsai/license_generator.js
Generate a csv of package dependency licenses for due dilligence
View license_generator.js
const fs = require('fs');
const path = require('path');
// https://github.com/shinnn/spdx-license-ids/blob/master/index.json
const spdx = [
'0BSD',
'AAL',
'Abstyles',
'Adobe-2006',
'Adobe-Glyph',
View resourceprofiles.json
{
"resourceGeneration": {
"minAreaRockRatio": 0.05,
"maxAreaSize": 8,
"startThreshold": 20,
"endThreshold": 5,
"injectAttempts": 30,
"favourite": 1.5,
"secondFavourite": 1.2,
"minFailInjectCount": 4,
View gist:1f3fee2bb9f37c76a254
consul-template -log-level=debug -dry -template "/etc/apps/myservice-api/env.ctmpl"
2015/07/14 23:11:03 [DEBUG] (logging) setting up logging
2015/07/14 23:11:03 [DEBUG] (logging) config:
{
"name": "consul-template",
"level": "debug",
"syslog": false,
"syslog_facility": "LOCAL0"
}
View element.html
<polymer-element name="x-foo">
<template>
<form action="{{ searchUrl(q) }}" method="post">
<paper-input-decorator class="search" label="Search ..." floatingLabel>
<input is="core-input" value="{{q}}">
</paper-input-decorator>
</form>
</template>
<script>
Polymer('x-foo', {
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<template id="shadowRootTemplate">
<style>
div { border: red solid 1px; }
View element-sugar.html
<import src="jquery" as="$">
<import src="squid.html" element-as="my-squid">
<my-squid></my-squid>
View maybe?.js
// This is what I want. (target inheritance, I think?)
element.animate(
new AnimationGroup([
new Animation([
{opacity: '0'},
{opacity: '1'}],
{duration: 350}),
new Animation([
{transform: 'scale(0)'},
{transform: 'scale(1)'},
View notes.md

Notes About This Skeleton

/demo/

We move demo sources into their own folder for a couple reasons:

  • It better groups them (we should feel free to add various demos in separate files).

  • It makes it much easier to bower ignore.

View npm-debug.log
This file has been truncated, but you can view the full file.
8004 verbose afterAdd /Users/imac/.npm/ms/0.6.2/package/package.json written
8005 silly install resolved [ { name: 'ms',
8005 silly install resolved version: '0.6.2',
8005 silly install resolved description: 'Tiny ms conversion utility',
8005 silly install resolved repository: { type: 'git', url: 'git://github.com/guille/ms.js.git' },
8005 silly install resolved main: './index',
8005 silly install resolved devDependencies: { mocha: '*', 'expect.js': '*', serve: '*' },
8005 silly install resolved component: { scripts: [Object] },
8005 silly install resolved bugs: { url: 'https://github.com/guille/ms.js/issues' },
View gist:44030e69db61c90f6047
npm install -g web-component-tester
npm WARN engine freeport@1.0.3: wanted: {"node":"0.6.x"} (current: {"node":"v0.10.29","npm":"1.4.14"})
> sauce-connect-launcher@0.6.1 install /Users/imac/.nvm/v0.10.29/lib/node_modules/web-component-tester/node_modules/sauce-connect-launcher
> node scripts/install.js
/
/Users/imac/.nvm/v0.10.29/lib/node_modules/web-component-tester/node_modules/lodash/dist/lodash.js:6355
/**
^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.