Skip to content

Instantly share code, notes, and snippets.

Avatar

Stanislav Panferov s-panferov

View GitHub Profile
View gist:701c89bc101d18b3e929a39457b8bdfe
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.docker.vmnetd</string>
<key>Program</key>
<string>/Library/PrivilegedHelperTools/com.docker.vmnetd</string>
<key>ProgramArguments</key>
<array>
View react-redux.d.ts
declare module "react-redux" {
import React from "react";
import * as redux from "redux";
interface ProviderProps {
store: redux.Store<any, any>;
}
interface ProviderState {
store: redux.Store<any, any>;
View models-imm.ts
import * as Immutable from 'immutable';
import {
Profile,
User,
} from './models';
export {
Profile,
User,
View app.js
webpackJsonp([0],[
/* 0 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(1);
/***/ },
/* 1 */
/***/ function(module, exports) {
View gist:8a7e26350ddb31254269
var webpack = require('webpack');
var path = require("path");
var fs = require("fs");
var nodeModules = {};
fs.readdirSync('node_modules')
.filter(function (x) {
return ['.bin'].indexOf(x) === -1;
})
.forEach(function (mod) {
View gist:c1ef473f811438d719bf
{
"version": "1.5.0-beta",
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"jsx": "react",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
@s-panferov
s-panferov / chat.ts
Created Jun 19, 2015
Immutable models in TS
View chat.ts
import invariant from '../lib/invariant';
import * as models from './index';
import { Record, Map, Set, List } from 'immutable';
import { Option, Some, None } from 'opty';
export enum ChatType {
Dialog = <any>'dialog',
Room = <any>'room'
}
View json.json
{
block : 'form-field',
name : 'documentUrgency',
mods : { theme : 'alfa', bkg : 'color' },
content : [
{ tag : 'br' },
{ tag : 'br' },
{ tag : 'br' },
{
block : 'checkbox',
View dep-hell.js
modules.define('madison',
['log', 'config', 'utils', 'router', 'bank__auth', 'bank__customers', 'page'],
function(provide, log, config, utils, router, bankAuth, bankCustomers, page) {
var vow = require('vow'),
express = require('express'),
path = require('path'),
cookies = require('cookie-parser'),
session = require('express-session'),
body = require('body-parser');