Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

-/
node_modules/
package-lock.json
-/
node_modules/
package-lock.json
module.exports = {
"package_path": "./-/",
"package_root": "/-/"
}
import { Injectable, Injector, Compiler } from '@angular/core';
import { SettingsService } from './settings.service';
@Injectable({
providedIn: 'root'
})
export class PluginsService {
constructor(
private settings: SettingsService,
node_modules
package-lock.json
@Hypercubed
Hypercubed / tvl.ts
Created December 23, 2017 01:25
Three-valued logic (TS)
export type bool = boolean | null;
export type cmpValue = -1 | 0 | 1;
export function not(a: bool) {
if (a === true) return false;
if (a === false) return true;
return null;
}
export function and(lhs: bool, rhs: bool): bool {
@Hypercubed
Hypercubed / Gruntfile.js
Last active December 7, 2017 20:46
DocPad is great.... but so is Grunt. Use grunt-contrib-connect and grunt-contrib-watch instead of docpad's server and watcher.
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
docpad: {
files: [ "./src/**/*.*" ],
out: ["out"]
},
watch: {
node_modules/
*.js
@Hypercubed
Hypercubed / .gitignore
Last active May 22, 2017 23:44
Bad value context for arguments value
jspm_packages
@Hypercubed
Hypercubed / LICENSE
Last active May 3, 2017 00:46 — forked from curran/LICENSE
Chiasm Boilerplate (with download buttons)
The MIT License (MIT)
Copyright (c) 2015 Curran Kelleher
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: