This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
begin | |
Application.Initialize; | |
if IsConsole then | |
// You'll have to add rxbHaltOnFailures param hre | |
// (Delphi doesn't do it automatically) | |
with TextTestRunner.RunRegisteredTests(rxbHaltOnFailures) do | |
Free | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ignore] | |
[include] | |
[libs] | |
[lints] | |
[options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Deck = React.createClass({ | |
getInitialState: function() { | |
return { | |
slide: this.props.firstSlide, | |
following: true, | |
likedSlides: {} | |
}; | |
}, | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
var { | |
AppRegistry, | |
StyleSheet, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^X ^E # edit command in $EDITOR, then execute it | |
!$ # last argument of last command | |
!:n # n-th argument of last command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
NewerOlder