Skip to content

Instantly share code, notes, and snippets.

Alexander Kotliarskyi frantic

Block or report user

Report or block frantic

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:f24b1e503aaafa2e23dab095003c3676
'CS47SI: 01. Initial State':
'prefix': 'std_initial_state'
'body': """
const initialStoreState = {
todos: [
{ id: 1, title: 'Build TODO app in under 1 hour', done: false },
{ id: 2, title: 'Prepare slides', done: false },
{ id: 3, title: 'Eat some cake', done: true },
@frantic
frantic / .flowconfig
Last active Aug 20, 2017
Problem with Flow React HoC with cross modules deps
View .flowconfig
[ignore]
[include]
[libs]
[lints]
[options]
View react-native-linear-gradient-bug3.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
View react-native-linear-gradient-bug2.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
View react-native-gradient-bug.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
@frantic
frantic / .phoenix.js
Last active Oct 23, 2015
My Pheonix 2.0 config file
View .phoenix.js
var mod = ['ctrl', 'cmd', 'alt'];
var handlers = [];
function moveWindow(window, shiftX, width, shiftY, height) {
var screen = Screen.mainScreen().visibleFrameInRectangle();
var newFrame = {
x: screen.x + screen.width * shiftX,
y: screen.y + screen.height * shiftY,
width: screen.width * width,
height: screen.height * height,
View new-flow.html
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- This file was created with the aha Ansi HTML Adapter. http://ziz.delphigl.com/tool_aha.php -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" />
<title>stdin</title>
</head>
<body>
<pre>
View magicdeck.js
var Deck = React.createClass({
getInitialState: function() {
return {
slide: this.props.firstSlide,
following: true,
likedSlides: {}
};
},
});
View gist:4742429
^X ^E # edit command in $EDITOR, then execute it
!$ # last argument of last command
!:n # n-th argument of last command
@frantic
frantic / git-tricks.sh
Created Jan 29, 2013
Git secrets I didn't know about
View git-tricks.sh
# Show inline diff
git diff HEAD^ --word-diff
# Turn on autocorrection ("comit" -> "commit")
git config --global help.autocorrect 1
# Ultimate blame
git blame -w -CCC
# Get a file from different branch/rev
You can’t perform that action at this time.