Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Andrey Popp andreypopp

🏠
Working from home
Block or report user

Report or block andreypopp

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:5588256
BIN = ./node_modules/.bin
SRC = $(wildcard src/*.coffee)
LIB = $(SRC:src/%.coffee=lib/%.js)
build: $(LIB)
lib/%.js: src/%.coffee
@mkdir -p $(@D)
@$(BIN)/coffee -bcp $< > $@
View AnimatedLocations.js
var React = require('react');
var TransitionGroup = require('react/lib/ReactCSSTransitionGroup');
var Router = require('react-router-component');
var AnimatedLocations = React.createClass({
mixins: [
Router.Environment.Mixin(Router.hashRoutingEnvironment),
Router.RouterMixin
],
View EditableGrid.js
const Cell = stylesheet.style("div", {
displayName: "Cell",
baseline: "100%",
overflow: "hidden",
boxSizing: "border-box",
position: "absolute",
top: 0,
left: 0,
right: "2px",
View gist:500260efe37c6a06544f880c69cadec8
### Keybase proof
I hereby claim:
* I am andreypopp on github.
* I am andreypopp (https://keybase.io/andreypopp) on keybase.
* I have a public key whose fingerprint is 493D AC47 53B2 A220 843C 19C0 D20F D46B 840C CF43
To claim this, I am signing this object:
View qw.sweet.js
macro makeString {
case { _ $tok } => {
return [makeValue(#{$tok}[0].token.value, #{here})]
}
}
macro qw {
rule { ($delimited ...) } => { [$(makeString $delimited) (,) ...] }
}
qw(space separated words) // ["space", "separated", "words"]
View jsx-macro
macro jsx {
case { _ $body } => {
var transform = require('react-tools').transform;
var body = #{ $body }[0].token.value.raw;
var transformed = transform('/** @jsx React.DOM */' + body).slice(21);
var tokens = parser.read(transformed);
tokens.pop(); // EOF
return tokens;
}
}
View mylib.rs
#[crate_type = "lib"];
#[allow(ctypes)];
use std::c_str;
use std::libc;
use std::ptr;
use std::vec;
struct PyObject;
@andreypopp
andreypopp / example.html
Created Nov 20, 2013
unnamed: React component
View example.html
<!doctype>
<html>
<head>
<title>Component Example</title>
<link rel="stylesheet" href="bundle.css">
<style>
body {
padding: 10px;
}
</style>
@andreypopp
andreypopp / example.html
Created Nov 19, 2013
unnamed: React component
View example.html
<!doctype>
<html>
<head>
<title>Component Example</title>
<link rel="stylesheet" href="bundle.css">
<style>
body {
padding: 10px;
}
</style>
@andreypopp
andreypopp / example.html
Created Nov 19, 2013
unnamed: React component
View example.html
<!doctype>
<html>
<head>
<title>Component Example</title>
<link rel="stylesheet" href="bundle.css">
<style>
body {
padding: 10px;
}
</style>
You can’t perform that action at this time.