Skip to content

Instantly share code, notes, and snippets.

@cemeng
cemeng / gist:6a1cb617581f7b71f47f
Last active August 29, 2015 14:25
angular-ui modal implemented with angular-strap modal
.factory "Modal", ($modal, $q) ->
open: (options) ->
deferred = $q.defer()
modal = {}
options.locals =
$modalInstance:
hide: ->
modal.hide()
close: (result) ->
@btroncone
btroncone / rxjs_operators_by_example.md
Last active November 7, 2024 09:19
RxJS 5 Operators By Example
@Saturate
Saturate / gulp-to-gulp4-codemod.js
Created June 29, 2017 10:01
Convert Gulp 3 to Gulp 4 with a codemod
// Use https://astexplorer.net/
export default function transformer(file, api) {
const j = api.jscodeshift;
const root = j(file.source);
const gulpTaskCalls = root.find(j.CallExpression, {
callee: {
object: {
name: 'gulp'