list all size of directory, sort by size
du -sh * | sort -hr
import { isPlainObject } from 'lodash'; | |
import { batchActions as batchActionsDefault } from 'redux-batched-actions'; | |
const handleInnerAction = (action, getState) => { | |
if (typeof action === 'function') { | |
return new Promise(resolve => { | |
const innerDispatch = innerAction => resolve(handleInnerAction(innerAction, getState)); | |
action(innerDispatch, getState); | |
}); | |
} else if (isPlainObject(action)) { |
list all size of directory, sort by size
du -sh * | sort -hr
/*_________________________________________________________________ | |
* | |
* Examples | |
*_________________________________________________________________ | |
*/ | |
/** | |
* React Components | |
*/ | |
this.props.actions.setProperties({ |
/*_________________________________________________________________ | |
* | |
* Examples | |
*_________________________________________________________________ | |
*/ | |
/** | |
* Components | |
*/ | |
this.props.actions.setProperties({ |
/** | |
* listener for pan gesture | |
*/ | |
- (void)panListener | |
{ | |
UIPanGestureRecognizer *panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panHandler:)]; | |
[self.view addGestureRecognizer:panGestureRecognizer]; | |
} | |
/** |
{ | |
"color_scheme": "Packages/Predawn/predawn.tmTheme", | |
"findreplace_small": true, | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"Vintage", | |
"Syntax Highlighting for Sass", | |
"SublimeLinter" | |
], |
$content = "I'm {{name}}, I live in {{location}}"; | |
$var['name'] = 'Max'; | |
$var['location'] = 'Paris'; | |
preg_match_all('|{{(.*?)}}|',$content, $matches); | |
foreach ($matches[1] as $key => $value) { | |
$content = str_replace('{{' . $value . '}}', $var[$value], $content); | |
} |
// get screen size after screen rotation | |
[UIApplication sharedApplication].keyWindow.rootViewController.view.bounds.size; |
jQuery(function ($) { | |
jQuery('td.description').hide(); | |
jQuery('td.select_video input').each(function () { | |
$this = jQuery(this); | |
if ($this.is(':checked')) { | |
$this.parent().parent().find('td.description').show(); | |
$this.parent().parent().find('td.image_upload').hide(); | |
}else { | |
$this.parent().parent().find('td.description').hide(); |