Skip to content

Instantly share code, notes, and snippets.

View cjgajard's full-sized avatar
😸
にゃあ

Carlos Gajardo cjgajard

😸
にゃあ
  • Santiago de Chile
View GitHub Profile
@TigorC
TigorC / hover-class.directive.ts
Created February 23, 2017 02:56
Angular 2 hover class directive
import { Directive, Input, HostListener, Renderer, ElementRef } from '@angular/core';
@Directive({ selector: '[hoverClass]' })
export class HoverClassDirective {
@Input()
hoverClass: string;
constructor(
public elementRef: ElementRef,
@Francesco149
Francesco149 / shige-skins.md
Last active March 31, 2024 14:53
Shigetora / Cookiezi skin compilation
module type CELL = sig
type 'a cell
type 'a exp
val return : 'a -> 'a exp
val (>>=) : 'a exp -> ('a -> 'b exp) -> 'b exp
val cell : 'a exp -> 'a cell exp
val get : 'a cell -> 'a exp
/* nobraces.ci: Python-style indentation for C
By Ben Hoyt, 22 Sep 2007, http://benhoyt.com/
Basically you just write C code, indenting it like you would anyway,
but use colons after control flow statements like in Python. Oh, and
leave off all those nasty end-of-line semicolons.
Okay, so it's a joke. Mostly. :-) Inspired by the Python parallel,
Tim Hatch's "pybraces" (C-style braces in Python):
http://timhatch.com/projects/pybraces/
@nelstrom
nelstrom / vim-plugin-directories
Created June 30, 2011 11:32
An overview of what belongs in each directory of a Vim plugin.
plugin
naming convention: name_of_plugin.vim
these files are sourced for all file types
doc
naming convention: name_of_plugin.txt
these files document the functionality of a plugin
color
naming convention: name_of_colorscheme.vim