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 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 identity-wizard.yaml
paths:
/identity-wizard :
action:
type: wizard
title: Identity Wizard
path:
- pick-identity:
- edit-identity:
View gist:e7fb3ed191cd0bf67f8c
module.exports = {
plugins: [
new webpack.ResolverPlugin([
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin(
'bower.json', ['main'])
], ['normal'])
]
}
View plugins.js
var React = require('react');
var Router = require('react-router-component');
var Link = Router.Link;
var Locations = Router.Locations;
var Location = Router.Location;
var plugins = [
{title: 'Reports', path: '/reports', handler: ReportHandler},
...
];
View output-0.8.0.js
/**
* @jsx React.DOM
*/
var jsx = (
React.DOM.div(null,
" Hello, " ,
React.DOM.a(null, "world!")
)
);
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 page.rd
---
title: Some new title
...
# some new stuff
And now some text is here
Another test
View assets.js
function Stylesheets() {
var registry = requireAssets.currentRegistry();
var stylesheets = [];
for (var url in registry.urlToFilename)
if (/\.css$/.exec(url))
stylesheets.push(<link rel="stylesheet" key={url} href={url} />);
return stylesheets;
}
var App = React.createClass({
@andreypopp
andreypopp / macroFilter.sjs
Last active Aug 29, 2015
Array.prototype.filter-like method call expanded into an efficient loop
View macroFilter.sjs
macro replace {
case { _ $a:expr $b:expr { $first $rest ... } } => {
if ($a.token.value === $first.token.value) {
return #{ $b replace $a $b $rest ... }
} else {
return #{ $first replace $a $b { $rest ... } }
}
}
case { _ $a:expr $b:expr { } } => {
return [];
You can’t perform that action at this time.