Skip to content

Instantly share code, notes, and snippets.

View taak77's full-sized avatar

Takashi Aoki taak77

  • AXS LLC
  • Los Angeles
View GitHub Profile
@taak77
taak77 / react_samples_list.md
Created September 19, 2018 18:05 — forked from jpalala/react_samples_list.md
React Samples List
@taak77
taak77 / The-many-Talents-of-JavaScript.md
Created November 21, 2016 01:22 — forked from petsel/The-many-Talents-of-JavaScript.md
The-many-Talents-of-JavaScript.md

#The many »Talents« of JavaScript

[TOC]

##The many talents of JavaScript for generalizing Role Oriented Programming approaches like Traits and Mixins

###TL;DR / Summary

@taak77
taak77 / idea
Last active November 6, 2016 19:36
Open IntelliJ from commandline
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`
@taak77
taak77 / setup-modernie-vagrant-boxes.md
Last active October 24, 2015 23:42 — forked from andrealbinop/setup-modernie-vagrant-boxes.md
Setup modern.ie vagrant boxes

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@taak77
taak77 / addContext
Created October 8, 2015 06:21
HOC which inject context object
import React, {PropTypes, Component} from "react";
import hoistStatics from "hoist-non-react-statics";
function getDisplayName(Component) {
return Component.displayName || Component.name || "Component";
}
export default function addContext(context = {}, contextTypes = {}) {
const childContextTypes = Object.keys(context).reduce((types, key) => {
types[key] = contextTypes[key] || PropTypes.any;
@taak77
taak77 / react-transferring-props
Created March 1, 2015 01:38
ReactJS: Transferring props to child
<script src="http://facebook.github.io/react/js/jsfiddle-integration.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
// No props were transferred from <Element /> to its child
var Case1 = React.createClass({
render: function () {
var child = React.Children.only(this.props.children);
return child;
}
});
import sublime, sublime_plugin
class RunBuildCommand(sublime_plugin.WindowCommand):
def run(self, build_system):
self.window.run_command( "set_build_system", {"file": build_system } )
self.window.run_command( "build" )