I hereby claim:
- I am chodorowicz on github.
- I am chodorowicz (https://keybase.io/chodorowicz) on keybase.
- I have a public key whose fingerprint is 7ED3 1C65 07A7 920E 5D0B 2F56 B703 B90B C3D0 6739
To claim this, I am signing this object:
class LoginStore { | |
constructor() { | |
this.isLoggedIn = false; | |
this.bindActions(LoginActions); | |
this.name = 'John'; | |
this.surname = 'Snow'; | |
this.exportPublicMethods({ | |
getIsLoggedIn: () => this.isLoggedIn, | |
getFullName: () => this.getFullName(), |
// Component | |
var AnswerDisplay = React.createClass({ | |
mixins: [FluxMixin, StoreWatchMixin("answer")], | |
getStateFromFlux() { | |
var flux = this.getFlux(), | |
answerStore = flux.store("answer"); | |
return { |
const arrowCodesVertical = [38, 40]; | |
const arrowCodesHorizontal = [37, 39]; | |
console.log(event.keyCode); | |
// console.log(this.myTextInput); | |
let s = window.getSelection(); | |
let len = s.toString().length; | |
let isLeftEdge, isRightEdge; | |
s.modify('extend', 'backward', 'character'); | |
if (len < s.toString().length) { | |
// It's not at the beginning of the input, restore previous selection |
I hereby claim:
To claim this, I am signing this object:
var config = { | |
resolve: { | |
alias: { | |
waypoints: 'waypoints/lib/noframework.waypoints', | |
}, | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /node_modules\/waypoints\/lib\/noframework\.waypoints\.js$/, |
var $pjaxContainer = $('.js-pjaxContainer'); | |
function pjaxLoad(target) { | |
$.pjax({ | |
url: target, | |
container: '.js-pjaxContainer', | |
fragment: '.js-pjaxContainer', | |
}); | |
} |
const browserSync = require('browser-sync').create(); | |
const port = process.env.PORT || 8080; | |
const customDomain = environment.DEV_DOMAIN ? `${environment.DEV_DOMAIN}` : 'localhost'; | |
browserSync.init('**/*.css', { | |
logPrefix: 'Showroom:', | |
proxy: `localhost:${port}`, | |
open: false, | |
host: customDomain, | |
port: 3000, | |
ghostMode: false, /* don't mirror interactions in other browsers */ |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var postcss = require('gulp-postcss'); | |
var autoprefixer = require('autoprefixer'); | |
var browserSync = require('browser-sync'); | |
var lost = require('lost'); | |
gulp.task('sass', function () { | |
gulp.src('./frontend/sass/main.scss') | |
.pipe(sass().on('error', sass.logError)) |
export syncpath="/path/to/folder/" | |
export remotepath="sftp://aaa@000.000.000.000:2222/remote/path/" | |
export duckParameters="-y -existing overwrite -p PASSWORD --upload"; | |
fswatch -0 ${syncpath} | xargs -0 -I % -t bash -c 'f="%"; rel=${f#"${syncpath}"}; duck ${duckParameters} ${remotepath}${rel} "${f}"; echo ${rel};' |