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
class A { | |
get a() { | |
return 1 | |
} | |
} | |
class B { | |
get b() { | |
return 2 | |
} | |
} |
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
global.Promise = require('bluebird') | |
const Queue = require('bull') | |
const EventEmitter = require('events') | |
const JOB_NAME = 'testJob' | |
const PROGRESS_BUS_EVENT_NAME = 'progress' | |
const COMPLETED_PROGRESS_VALUE = 100 | |
const { log } = console |
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
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved */ | |
import Vue from 'vue' | |
import { | |
Layout, Modal, Button, FormGroup, FormInput, | |
FormTextarea, InputGroup, Jumbotron, Collapse, Card, | |
Tabs, Popover, Badge | |
} from 'bootstrap-vue/es/components' | |
Vue.use(Layout) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
function verifyChecksum (params, secret) { | |
const valuesArray = Object | |
.keys(params) | |
.filter((key) => key && params[key] && key !== 'verification_code') | |
.map((key) => params[key]) | |
const valuesObject = {} | |
for (let i = 0; i < valuesArray.length; i++) { | |
// stringify indexes for ASCII sort | |
valuesObject[i.toString()] = valuesArray[i] |
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
export PERL_CPANM_OPT="--cascade-search --save-dists=$HOME/.cpanm/cache --mirror=$HOME/.cpanm/cache --mirror=http://search.cpan.org/CPAN" |
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
package A; | |
sub file { | |
__FILE__; | |
} | |
package B; | |
use base 'A'; |
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
# WORKS | |
perl -Ilocal bin/daemons/gearman-worker.pl start -f | |
# DOES NOT WORK | |
carton exec "bin/daemons/gearman-worker.pl start -f" | |
dyld: lazy symbol binding failed: Symbol not found: _gearman_worker_create | |
Referenced from: local/lib/perl5/darwin-2level/auto/Gearman/XS/XS.bundle | |
Expected in: dynamic lookup |
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
#!/bin/bash | |
# | |
# chkconfig: - 16 84 | |
# description: Start up transmission-daemon | |
# | |
# processname: transmission-daemon | |
# config: /etc/sysconfig/transmission | |
# source function library | |
. /etc/rc.d/init.d/functions |
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
my $r = $self->routes; | |
push @{$r->namespaces}, 'Atlas::Backup::Web::Controller'; | |
my $job = $r->route('/job')->to(controller => 'Backup::Job'); | |
$job->get('')->to(action => 'collection'); | |
for my $method (qw/get post put delete/) { | |
$job->$method('/:id')->to(action => "single_$method"); | |
} |