Skip to content

Instantly share code, notes, and snippets.

Avatar
🍰
is a lie

Dmitry Chirkin josser

🍰
is a lie
View GitHub Profile
View dunno.jsx
import React, { Component } from 'react';
import { connect } from "react-redux";
import Window from "components/Window";
import Toolbar from "components/Toolbar";
import { query } from "reducers/connections";
var AceEditor = require('react-ace');
var brace = require('brace');
require('brace/mode/sql');
require('brace/theme/xcode');
View gist:20cf6648ea495dee1b78
import React, { Component } from 'react';
import { connect } from "react-redux";
import Window from "components/Window";
import Toolbar from "components/Toolbar";
import { query } from "reducers/connections";
var AceEditor = require('react-ace');
var brace = require('brace');
require('brace/mode/sql');
require('brace/theme/xcode');
View parser.js
var parser = parse({delimiter: ',', columns: ['code', 'date', 'open', 'high', 'low', 'close', 'volume', 'f0']});
var saver = transform(function(asset, cb) {
models.MetastockHistory.create({
code: asset['code'],
date: moment(asset['date'], 'YYYYMMDD').format(),
price: parseFloat(asset['close'])
}).then(function (result) {
cb(null, result);
});
View gist:923be3dd414fa2c67962
var parser = parse({delimiter: ',', columns: ['code', 'date', 'open', 'high', 'low', 'close', 'volume', 'f0']});
var saver = transform(function(asset, cb) {
models.MetastockHistory.create({
code: asset['code'],
date: moment(asset['date'], 'YYYYMMDD').format(),
price: parseFloat(asset['close'])
}).then(function (result) {
cb(null, result);
});
View gist:d79993e93ff627eaa4fb
var parser = parse({delimiter: ',', columns: ['code', 'date', 'open', 'high', 'low', 'close', 'volume', 'f0']});
var saver = transform(function(asset, cb) {
models.MetastockHistory.create({
code: asset['code'],
date: moment(asset['date'], 'YYYYMMDD').format(),
price: parseFloat(asset['close'])
}).then(function (result) {
cb(null, result);
});
View import.js
var fs = require('fs');
var gulp = require('gulp');
var env = process.env.NODE_ENV || 'development';
var child_process = require('child_process');
var config = require('../../config/config.json')[env];
var path = require('path');
var minimist = require('minimist');
var knownOptions = {
string: ['from'],
View josser.zsh-theme
# prompt style and colors based on Steve Losh's Prose theme:
# http://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
#
# vcs_info modifications from Bart Trojanowski's zsh prompt:
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt
#
# git untracked files modification from Brian Carper:
# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
function virtualenv_info {
View avahi manual
Install And Configure The Avahi Service
Run the following two commands.
Gentoo:
# echo "net-dns/avahi -gdbm -introspection" >> /etc/portage/package.use
# emerge avahi
The first command tells portage (Gentoo's package management system) to build avahi without support for gdbm and introspection. These two features are not required and would cause portage to pull in several more uncessary packages when building avhai.
The second command tells portage to download, compile, and install the avahi service.
View gist:294616a7e1d1d20df5a6
var domain = require('domain');
var express = require('express');
var fs = require('fs');
var _ = require('lodash');
module.exports = function(parent, options){
var directory = options.directory || __dirname + '/../controllers';
fs.readdirSync(directory).forEach(function(name){
View gist:c033d570b2ce52339736
Files 2.85/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz and 2.86/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz differ
Files 2.85/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz.inf and 2.86/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz.inf differ
Files 2.85/Application/BCM/nav_nit/bcm_nav_nit.gz and 2.86/Application/BCM/nav_nit/bcm_nav_nit.gz differ
Files 2.85/Application/BCM/nav_nit/bcm_nav_nit.gz.inf and 2.86/Application/BCM/nav_nit/bcm_nav_nit.gz.inf differ
Files 2.85/Application/BCM/version/bcm_version.gz and 2.86/Application/BCM/version/bcm_version.gz differ
Files 2.85/Application/BCM/version/bcm_version.gz.inf and 2.86/Application/BCM/version/bcm_version.gz.inf differ
Files 2.85/Application/BTL/FS_Storage_Ctrl.gz and 2.86/Application/BTL/FS_Storage_Ctrl.gz differ
Files 2.85/Application/BTL/FS_Storage_Ctrl.gz.inf and 2.86/Application/BTL/FS_Storage_Ctrl.gz.inf differ
Files 2.85/Application/Boot/RNEG20XX_3WC_2_80/DG4/BOOTROM.DAT and 2.86/Application/Boot/RNEG20XX_3WC_2_80/DG4/BOOTRO