This file contains hidden or 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
sloth_version="0.8.0" | |
# get the name of the operating system | |
platform='unknown' | |
unamestr=`uname` | |
if [[ "$unamestr" == 'Linux' ]]; then | |
platform='linux' | |
elif [[ "$unamestr" == 'FreeBSD' ]]; then | |
platform='freebsd' | |
elif [[ "$unamestr" == 'Darwin' ]]; then |
This file contains hidden or 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
async function getFrameDocument(frame: Frame): Promise<ElementHandle> { | |
const documentHandle = await frame.evaluateHandle<Node>('document') | |
const document = documentHandle.asElement() | |
if (!document) { | |
throw new Error('Failed to find Document in frame') | |
} | |
return document | |
} | |
async function getQueriesByFrame(frame: Frame) { |
This file contains hidden or 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
{ | |
"configs": [ | |
{ | |
"automock": false, | |
"cache": true, | |
"cacheDirectory": "/private/var/folders/qg/y_s5wnyd71nd33zg9z1_76tw0000gn/T/jest_dx", | |
"clearMocks": false, | |
"coveragePathIgnorePatterns": [ | |
"/node_modules/" | |
], |
This file contains hidden or 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
root@ip-10-77-16-149:~# dokku report | |
-----> uname: Linux ip-10-77-16-149 4.4.0-1079-aws #89-Ubuntu SMP Tue Mar 26 15:25:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | |
-----> memory: | |
total used free shared buff/cache available | |
Mem: 3891 747 380 11 2763 2803 | |
Swap: 0 0 0 | |
-----> docker version: | |
Client: | |
Version: 18.09.0 | |
API version: 1.39 |
This file contains hidden or 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
const DashboardRoute = (props) => { | |
const { component: Component, isAuthenticated, ...rest } = props; | |
return ( | |
<Route | |
{...rest} | |
render={matchProps => { | |
return isAuthenticated ? ( | |
<DashboardLayout> | |
<Component {...props} /> | |
</DashboardLayout> |
This file contains hidden or 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
const Annotation = require('ecmas-annotations').Annotation | |
const _ = require('lodash') | |
/** | |
* @module Auth | |
* @description Auth annotation | |
*/ | |
module.exports = class Auth extends Annotation { | |
constructor(data, filePath) { |
This file contains hidden or 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
Ext.ns('App'); | |
Ext.Loader.setConfig({ enabled : true, disableCaching : true }); | |
Ext.Loader.setPath('Sch', ''); | |
Ext.require([ | |
'Sch.panel.SchedulerGrid', | |
'Sch.plugin.Pan', | |
'Sch.plugin.SimpleEditor', | |
'Sch.plugin.Lines', |
This file contains hidden or 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
package sounds | |
{ | |
import flash.events.Event; | |
import flash.events.EventDispatcher; | |
import flash.events.SampleDataEvent; | |
import flash.media.Sound; | |
import flash.utils.ByteArray; | |
/** | |
* RandomlyPlaylist |
This file contains hidden or 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
private function onViewsUpdate():void | |
{ | |
for each ( var item: AnimatedNumberView in _numberViews ) | |
{ | |
if ( item.animating ) | |
{ | |
item.currentValue++; | |
if ( item.currentValue > 9 ) { | |
item.currentValue = 0; | |
} |
This file contains hidden or 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
$GLOBALS['TL_DCA']['tl_page']['list']['operations']['clearcomments'] = array( | |
'label' => &$GLOBALS['TL_LANG']['tl_page']['clearcomments'], | |
'href' => 'act=clearcomments', | |
'icon' => 'visible.gif', | |
'attributes' => 'onclick="Backend.getScrollOffset();"', | |
'button_callback' => array('WikiContentAccess', 'showActionButton') | |
); |
NewerOlder