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
public class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World"); | |
} | |
} |
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
(defun binding-pry-filter (text) | |
(if (string-match "^ => [0-9]+:" text) (pop-to-buffer (current-buffer)))) | |
(defun projectile-rails-server (port) | |
(interactive "P") | |
(require 'inf-ruby) | |
(if (not port) (setq port 3000)) | |
(projectile-rails-with-root | |
(progn | |
(if (not (comint-check-proc inf-ruby-buffer)) (rvm-activate-corresponding-ruby)) |
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
;;; ox-confluence --- Confluence Wiki Back-End for Org Export Engine | |
;; Copyright (C) 2012, 2014 Sébastien Delafond | |
;; Author: Sébastien Delafond <sdelafond@gmail.com> | |
;; Keywords: outlines, confluence, wiki | |
;; This file is not part of GNU Emacs. | |
;; This program is free software: you can redistribute it and/or modify |
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 test.sh | |
#!/bin/bash | |
function hello() { | |
echo "ARG1: $1" | |
echo "ARG2: $2" | |
echo "ARG3: $3" | |
} | |
echo "ARG_1: $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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# -*- ruby -*- | |
require 'optparse' | |
NOW = Time.now | |
CONTENT_TYPE_MAP = { | |
"app" => "com.apple.application-bundle", |
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
_autojump() | |
{ | |
local cur | |
cur=${COMP_WORDS[*]:1} | |
comps=$(autojump --bash --complete $cur) | |
while read i | |
do | |
COMPREPLY=("${COMPREPLY[@]}" "${i}") | |
done <<EOF | |
$comps |
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
#!/opt/local/bin/python2.7 | |
# -*- coding: utf-8 -*- | |
""" | |
Copyright © 2008-2012 Joel Schaerer | |
Copyright © 2012 William Ting | |
* This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 3, or (at your option) | |
any later version. |
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/env python | |
import sys | |
import getopt | |
import re | |
import types | |
# | |
# Originally written by Einar Lielmanis et al., | |
# Conversion to python by Einar Lielmanis, einar@jsbeautifier.org, |
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/env perl | |
my $bounds_string = join "", <>; | |
$bounds_string =~ s#\{#[#g; | |
$bounds_string =~ s#\}#]#g; | |
eval 'our $bounds = ' . $bounds_string; | |
my %apps = (); | |
for my $window (@$bounds) { | |
my $app_name = $window->[0]; | |
my $window_title = $window->[1]; |