This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dsp-md-imprint: "e900"; | |
@function unicode($str){ | |
@return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"") | |
} | |
@mixin makeIcon($arg, $val , $os: null) { | |
// @debug $os; | |
// @debug $arg; | |
// @debug $val; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fromEvent, Subject, merge, interval, race, animationFrameScheduler } from 'rxjs'; | |
import { | |
AfterContentInit, | |
Component, | |
ContentChildren, | |
ElementRef, | |
QueryList, | |
OnInit, | |
OnDestroy | |
} from '@angular/core'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/DrMabuse23/bd27dd1c7b845d41fd16aa5e68665e0a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logColor(color, args) { | |
console.log(`%c ${args.join(' ')}`, `color: ${color}`); | |
} | |
const log = { | |
aliceblue: (...args) => { logColor('aliceblue', args)}, | |
antiquewhite: (...args) => { logColor('antiquewhite', args)}, | |
aqua: (...args) => { logColor('aqua', args)}, | |
aquamarine: (...args) => { logColor('aquamarine', args)}, | |
azure: (...args) => { logColor('azure', args)}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(new MaterialApp(home: new ChartPage())); | |
} | |
class ChartPage extends StatefulWidget { | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
batchInserts(table : string, fields : Array < string >, rows : Array < any >, chunkSize = 200) { | |
if (!table || !table.length) { | |
return Observable.throw(`table on batchinsert is required`); | |
} | |
if (!rows || !rows.length) { | |
return Observable.throw(`rows can not be empty on batchinsert`); | |
} | |
let inserted = 0; | |
return Observable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Events } from 'ionic-angular'; | |
import { Output, EventEmitter } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { Injectable } from '@angular/core'; | |
import { Http } from '@angular/http'; | |
import 'rxjs/Rx'; | |
/** | |
* | |
* @example {"artist":{"name":"The Pandoras"},"album":"Stop Pretending","rating":0,"ownerShip":"Vinyl","tags":""} | |
* @export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fake = () => { | |
let _data = []; | |
for (i = 0, l = 46; i < l; i++) { | |
let card = faker.helpers.userCard(); | |
card.id = (i + 1); | |
_data.push(card); | |
} | |
return _data; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface HTMLVideoElement extends HTMLMediaElement { | |
/** | |
* Gets or sets the height of the video element. | |
*/ | |
height: number; | |
msHorizontalMirror: boolean; | |
msIsLayoutOptimalForPlayback: boolean; | |
msIsStereo3D: boolean; | |
msStereo3DPackingMode: string; | |
msStereo3DRenderMode: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var fs = require('fs'); | |
var join = require('path').join; | |
var util = require('gulp-util'); | |
var _file = null; | |
var rootdir = __dirname; | |
var SRC = null; | |
const DEST = 'dist'; | |
function writeinfile(file, cb) { | |
fs.stat(file, function(err, stats) { |
NewerOlder