Skip to content

Instantly share code, notes, and snippets.

View amatiasq's full-sized avatar

A. Matías Quezada amatiasq

View GitHub Profile
export interface IBar {
foo: boolean;
}
{
"name": "nomes",
"version": "1.0.0",
"description": "",
"main": "index.html",
"devDependencies": {
"ts-loader": "^0.8.2",
"typescript": "^1.8.10"
},
"scripts": {
@amatiasq
amatiasq / .eslintrc.json
Created August 24, 2016 09:40
ESLint config for es6-babel
{
"parser": "babel-eslint",
"env": {
"browser": true
},
"globals": {
"define": true,
"require": true,
export default function(self) {
let last = null;
let isEmpty = true;
return self
.forEach(value => {
last = value;
isEmpty = false;
})
<!doctype html>
<html>
<head>
<title>My Angular App</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.js" data-main="index"></script>
</head>
<body>
<div ng-controller="MainController">
<my-directive></my-directive>
@amatiasq
amatiasq / method.js
Last active January 26, 2016 03:43
ESDoc plugin for assign a function as a method.
/*
* Enables @method tag in functions to document it as a method of a existing class.
* Author A. Matías Quezada <amatiasq@gmail.com>
* MIT License
*
* Usage:
*
* /** @method MyClass * /
* export function foo() {}
*
// This file is just to keep track of not-included array methods
interface Array implements ~ISyncCollection {
// Mutates collection
pop() : Object;
shift() : Object;
push(...value : Object) : Number;
unshift(...value : Object) : Number;
splice(start : Number, deleteCount : Number, ...value : Object = null) : Array;
function banshee_application(checknum, pid, args) {
var app = new eyeos.application.Banshee(checknum, pid, args);
}
qx.Class.define("eyeos.application.Banshee", {
extend: eyeos.system.EyeApplication,
construct: function(checknum, pid, args) {
arguments.callee.base.call(this, 'banshee', checknum, pid);
Babel
Base16 color schemes
Cucumber
GitSavvy
Grunt
Gulp
Javsacript Beautify
JavascriptNext - ES6 Syntax
jsFormat
LESS