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
// ==UserScript== | |
// @name collapse trello columns | |
// @namespace http://tampermonkey.net/ | |
// @version 0.10 | |
// @updateUrl https://gist.github.com/omega/4b7a4e9242c0340348b5271f7fecc5be/raw/trello-collapse.user.js | |
// @description try to take over the world! | |
// @author You | |
// @match https://trello.com/b/* | |
// @grant GM_setValue | |
// @grant GM_getValue |
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 | |
vercomp () { | |
if [[ $1 == $2 ]] | |
then | |
return 0 | |
fi | |
local IFS=. | |
local i ver1=($1) ver2=($2) | |
# fill empty fields in ver1 with zeros |
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
// | |
// This server will start a bash shell and expose it | |
// over socket.io to a browser. See ./term.html for the | |
// client side. | |
// | |
// You should probably: | |
// | |
// npm install socket.io | |
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js | |
// |
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
# Add a new remote, called safe | |
$ git remote add -f safe `git remote -v | grep origin | grep push | awk '{ print $2 }'` | |
# Set the push url of this remote to nowhere | |
$ git remote set-url --push safe nowhere | |
# Set the upstream branch for our branch to safe origin | |
$ git branch --set-upstream-to=safe/master | |
# lets try a push | |
$ git push | |
fatal: 'nowhere' does not appear to be a git repository |
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
diff --git a/lib/Test/Harness.pm b/lib/Test/Harness.pm | |
index 9e63793..0d041c7 100644 | |
--- a/lib/Test/Harness.pm | |
+++ b/lib/Test/Harness.pm | |
@@ -246,6 +246,11 @@ sub _new_harness { | |
elsif ( $opt eq 'c' ) { | |
$args->{color} = 1; | |
} | |
+ elsif ( $opt =~ m/^f(.*)$/ ) { | |
+ my $fmt = $1; |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("facebook.com") { | |
#pagelet_rhc_ticker { | |
display: none; | |
} | |
} |
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
$ cat /tmp/foo.t | |
use Test::More; | |
plan tests => 1; | |
my $f = 1; | |
note(sprintf("Testing: %s", $f++)); | |
diag(sprintf("Testing: %s", $f++)); |
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
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
bind-key \; command-prompt | |
bind a send-prefix # to make C-a a go to start of line | |
set-option -g status-bg red | |
set-option -g status-fg white | |
set-window-option -g utf8 on |
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 EasyCMS2::Model::Base; | |
use strict; | |
use base 'Catalyst::Model::DBIC::Schema'; | |
use EasyCMS2::Schema::Base; | |
__PACKAGE__->config( | |
schema_class => 'EasyCMS2::Schema::Base', | |
); |
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
#!/usr/bin/perl | |
use Chart::Clicker; | |
use Chart::Clicker::Data::Series::Size; | |
use Chart::Clicker::Data::DataSet; | |
use Geometry::Primitive::Circle; | |
use Chart::Clicker::Renderer::Bubble; | |
my $ticks = { labels => ["omega", "nilsi", "gram"], "values" => [1, 3, 2] }; |
NewerOlder