Skip to content

Instantly share code, notes, and snippets.

dist
cabal-dev
*.o
*.hi
*.chi
*.chs.h
.virtualenv
.hpc
.hsenv
.cabal-sandbox/
import * as hookMod from 'angular2/src/router/lifecycle_annotations';
import * as routerMod from 'angular2/src/router/router';
import {isBlank, isPresent} from 'angular2/src/facade/lang';
import {StringMapWrapper} from 'angular2/src/facade/collection';
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {BaseException} from 'angular2/src/facade/exceptions';
import {
ElementRef, DynamicComponentLoader, Directive, Injector, provide, ComponentRef, Attribute
} from 'angular2/core';
import {
import {Directive, ElementRef, Input} from "angular2/core";
import {View} from "ui/core/view";
@Directive({
selector: '[dump]'
})
export class DumpDirective {
@Input('dump') name: any;
constructor(private element: ElementRef) {
#!/bin/sh
set -e
NS_DIR=$(pwd)
APP_DIR=$1
grunt default --test-app-only=true --runtslint=false
rsync -XPav bin/dist/apps/tests/ $1/app/
@hdeshev
hdeshev / delete-all-messages.js
Last active May 2, 2020 07:07 — forked from rcx/delete-all-messages.js
Delete all your messages in a Discord channel
clearMessages = function (guild_id, authToken, deleted = new Set(), interval = 1000) {
/*
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
*/
const searchURL = `https://discordapp.com/api/v6/guilds/${guild_id}/messages/search?include_nsfw=true`
const headers = { Authorization: authToken }
let clock = 0
function delay(duration) {
return new Promise((resolve, reject) => {