Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Pascal Brewing DrMabuse23

🏠
Working from home
Block or report user

Report or block DrMabuse23

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
View gist:00fbe6f3c6d2b4ec01b60ce83240fac4
https://gist.github.com/DrMabuse23/bd27dd1c7b845d41fd16aa5e68665e0a
View color-log.js
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)},
View bart_slider.dart
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(home: new ChartPage()));
}
class ChartPage extends StatefulWidget {
@override
View batchinsert.ts
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
View Store.ts
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
View pager.ts
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;
}
View HTMLVIDEO.ts
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;
View gulpfile.js
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) {
View LanguageTable.js
'use strict';
import React from 'react';
import shell from 'shell';
import {Table, Column} from 'fixed-data-table';
import update from 'react-addons-update';
import mui from 'material-ui';
import ipc from 'ipc';
class EditableTextArea extends React.Component{
constructor(props){
super(props);
View LanguageTable.js
'use strict';
import React from 'react';
import shell from 'shell';
import {Table, Column} from 'fixed-data-table';
import update from 'react-addons-update';
import mui from 'material-ui';
import ipc from 'ipc';
export class LanguageTable extends React.Component {
constructor(props) {
You can’t perform that action at this time.