Skip to content

Instantly share code, notes, and snippets.

View sjbarag's full-sized avatar

Sean Barag sjbarag

  • Seattle-ish, WA
  • 05:16 (UTC -07:00)
View GitHub Profile
@font-face {
font-family: "Iosevka";
src:
local("Iosevka Fixed SS04"),
local("Iosevka"),
}
@sjbarag
sjbarag / splitshot-output.d.ts
Created December 9, 2019 19:58
Sample output from @hulu/splitshot
export const Foo: any;
export const Bar: any;
declare const function_rsv: any;
export { function_rsv as function };
export function getStuff(anArgument?: any): any;
declare class TheMathematicsOfQuantumNeutrinoFields {
professor: any;
books: any;
drop(): any;
var Foo, f,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Foo = (function(superClass) {
extend(Foo, superClass);
function Foo() {
this.sayHello = bind(this.sayHello, this);
@sjbarag
sjbarag / splitshot-input.coffee
Last active December 9, 2019 22:31
Sample input to @hulu/splitshot
ModuleName = exports
ModuleName.Foo = "Some string"
ModuleName.Bar = {
someObjectLiteral: true
}
ModuleName.function = "fnucotin" # tests reserved word exports
ModuleName.getStuff = (anArgument) ->
return ["stuff", "and more stuff"]
class Foo extends Bar
sayHello: (name) =>
console.log("Hello, #{name}!")
f = new Foo();
setImmediate(() -> f.sayHello("Dave"))
@sjbarag
sjbarag / settings.json
Created March 19, 2019 02:52
My current VSCode settings.json when working with sjbarag/brs
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug tests",