I hereby claim:
- I am dotandimet on github.
- I am dotandimet (https://keybase.io/dotandimet) on keybase.
- I have a public key ASBvXbQcpCZJxHo87NkK0JKL76iohNUcYprHfDz_k-tt4Qo
To claim this, I am signing this object:
const EventEmitter = require('events'); | |
class Observable extends EventEmitter { | |
constructor(source) { | |
super(); | |
this.self = {}; |
from unittest.mock import Mock, patch | |
import mypackage | |
import other | |
def test(): | |
thing = mypackage.get_my_class() | |
thing.method = Mock() | |
with patch('other.get_my_class', |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
# can you spot the bug below? | |
sub load_and_go { | |
my $self = shift; | |
$self->render_later(); | |
my $subs = $self->backend->feeds->find({xmlUrl => $self->param('src')})->all; | |
$self->process_feeds( | |
$subs, | |
sub { | |
$self->redirect_to( |
use File::Slurp; | |
use Tie::LevelDB; | |
my $file_name = shift; # give the script an image file argument - preferably a PNG. | |
my $db = new Tie::LevelDB::DB("db/"); | |
my $buffer; | |
read_file( $file_name, binmode => ':raw', buf_ref => \$buffer ); |
$('.concord-text') | |
.each(function(t){ | |
if ($(this).text().match(/[אבגדהוזחטיכלמנסעפצקרשת]/)) { | |
$(this).attr('dir', 'rtl'); | |
}; | |
}); |
#!/usr/bin/env perl | |
use JSON; | |
use Mojo::JSON; | |
use Test::More tests => 6; | |
my $j = JSON->new; | |
my $mj = Mojo::JSON->new; |
package Unity::DBI; | |
use base qw/DBIx::Class::CDBICompat/; | |
package Unity::Cluster; | |
use base 'Unity::DBI'; | |
__PACKAGE__->table('u_clusters'); | |
__PACKAGE__->table_alias('u_clusters'); | |
__PACKAGE__->sequence('obj_id'); | |
__PACKAGE__->columns(Primary => qw/id/); |
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use CGI::Fast; | |
use Capture::Tiny qw(capture); | |
use IPC::Run3 qw(run3); | |
my $cmd = 'date'; |