Skip to content

Instantly share code, notes, and snippets.

View chasenlehara's full-sized avatar

Chasen Le Hara chasenlehara

View GitHub Profile
@bmomberger-bitovi
bmomberger-bitovi / done-component.tmLanguage
Last active June 20, 2019 21:01
A TextMate-compatible syntax highlighter for DoneJS .component files (requires LESS and Mustache highlighters -- see comments)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>component</string>
</array>
<key>firstLineMatch</key>
<string>&lt;(?i:can-component)</string>
@JaneOri
JaneOri / stealjs.wasm.md
Created March 11, 2019 12:11
Load/Import webassembly modules with StealJS

Couldn't find a plugin to load web assembly modules so I wrote one. Posting it here in case anyone else needs it whenever:

./wasm.js:

exports.fetch = () => ""
exports.instantiate = function (load) {
  const loader = this
  return fetch(load.address).then(r => {
 const contentType = r.headers.get("content-type")
@justinbmeyer
justinbmeyer / dependency-size.html
Created December 3, 2017 00:52
dependency-size.html
<script src="../../../node_modules/steal/steal.js" main="can/can">
</script>
<script>
var allDeps = {};
function getEveryDep(moduleName) {
if(allDeps[moduleName]) {
return allDeps[moduleName];
}
@imaustink
imaustink / readme.js
Last active March 1, 2019 19:33 — forked from andrejewski/license-year.js
Super mod: Update readme
var fs = require('fs');
var path = require('path');
var MODULE_DESC_REGEX = /<code>__can-.+__ <\/code>\n(.+)/m;
var FALLBACK_MODULE_DESC_REGEX = /(?=\n[a-z]|\n[A-Z])\n(.+)/m
module.exports = {
getOptions: function () {
return [];
},