Skip to content

Instantly share code, notes, and snippets.

Dominic Watson intellix

Block or report user

Report or block intellix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@intellix
intellix / test.module.ts
Created Jan 9, 2018
1x cmp (1.3kb) vs 2x cmp (1.9kb)
View test.module.ts
webpackJsonp(["test.module"],{l6mg:function(n,l,o){"use strict";function e(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(n()(),u["\u0275ted"](-1,null,["\n one works!\n"])),(n()(),u["\u0275ted"](-1,null,["\n"]))],null,null)}Object.defineProperty(l,"__esModule",{value:!0});var u=o("LMZF"),t=function(){},c=function(){function n(){}return n.prototype.ngOnInit=function(){},n}(),r=u["\u0275crt"]({encapsulation:0,styles:[[""]],data:{}}),d=u["\u0275ccf"]("cw-one",c,function(n){return u["\u0275vid"](0,[(n()(),u["\u0275eld"](0,0,null,null,1,"cw-one",[],null,null,null,e,r)),u["\u0275did"](1,114688,null,0,c,[],null,null)],function(n,l){n(l,1,0)},null)},{},{},[]),i=o("Un6q");o.d(l,"TestModuleNgFactory",function(){return a});var a=u["\u0275cmf"](t,[c],function(n){return u["\u0275mod"]([u["\u0275mpd"](512,u.ComponentFactoryResolver,u["\u0275CodegenComponentFactoryResolver"],[[8,[d]],[3,u.ComponentFactoryResolver],u.NgModuleRef]),u["\u0275mpd"](4608,i.NgLocalization,i.N
View summary-1.component.ts
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Apollo } from 'apollo-angular';
import { Observable } from 'rxjs/Observable';
import { map, pluck, switchMap } from 'rxjs/operators';
import { query, User, SummaryResponse } from './summary.graphql';
@Component({
selector: 'cw-summary',
View apollo-client-node-package.json
{
"_args": [
[
{
"raw": "apollo-client@^0.5.9",
"scope": null,
"escapedName": "apollo-client",
"name": "apollo-client",
"rawSpec": "^0.5.9",
"spec": ">=0.5.9 <0.6.0",
View chunk.filter.js
(function() {
'use strict';
angular
.module('chunkFilter')
.filter('chunk', chunk);
function chunk() {
return function(value, size, vertical, preserveKeys) {
var chunks = [];
View chunk.filter.js
(function() {
'use strict';
angular
.module('chunkFilter')
.filter('chunk', chunk);
function chunk() {
return function(value, size, vertical, preserveKeys) {
var chunks = [];
@intellix
intellix / SassMeister-input.scss
Created Feb 25, 2016
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
$var: red;
$var: #000 !default;
p {
color: $var;
}
@intellix
intellix / SassMeister-input.scss
Created Feb 24, 2016
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
#promotions,
#promotions-archive {
.expand-view-banner {
background-color: red;
min-height: 17px;
position: relative;
@intellix
intellix / SassMeister-input.scss
Created Jan 12, 2016
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.3.2)
// ----
#this,
#looks,
#innocent {
.red {
color: red;
@intellix
intellix / SassMeister-input.scss
Last active Nov 25, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
@import "bourbon/bourbon";
$bars: (
#3366CC #45afe2,
#DC3912 #FF3300,
);
@intellix
intellix / SassMeister-input.scss
Created Nov 16, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
// Import
$red: #cc0000;
// Defaults
You can’t perform that action at this time.