-- NOTE: this script assumes a connection to a database
-- named `myapp_development` with adequate permissions
BEGIN;
-- user to be listed in config/database.yml
-- NOTE: this user does not own any database objects
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
require 'spec_helper' | |
class PredicateMatcherExperiment | |
attr_reader :ivar | |
def initialize(ivar: nil) | |
@ivar = ivar | |
end |
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
on run {input, parameters} | |
tell application "Finder" | |
set ffxAppPath to POSIX path of (application file id "org.mozilla.firefox" as string) | |
end tell | |
set ffxBinaryName to "firefox" | |
set ffxExePath to ffxAppPath & "/Contents/MacOS/" & ffxBinaryName | |
-- Command to start a new instance of Firefox Profile Manager in the background | |
-- and return its pid. |
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 codecs | |
import locale | |
unicode_string = u' \\u2013: \u2013' | |
print 'sys.stdout.encoding: %(enc)s' % {'enc': sys.stdout.encoding} |
These contributing guidelines were accepted rather late in the history of this plugin, after much code had already been written.
If you find any existing behavior which does not conform to these guidelines, please correct it and send a pull request.
Every non local identifier must start with g:vim_markdown_
.
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
Highlight :banana_pepper: and :-1: and @cow, but not :banana or :#:. | |
My commit is 9082385 | |
9823498 | |
xyz@0928342 | |
banana/xyz@0928342 | |
something something #209 | |
xyz#234 | |
banana/xyz#234 | |
+++ backtick#43 |
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
import re | |
p = re.compile("\(\(([^()]+)\)\)") | |
file_path = str(raw_input('File Name >')) | |
orig_text = open(file_path).read() | |
new_text = "" | |
footnoteMatches = p.finditer(orig_text) | |
coordinates = [] |
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
# output a random line of /etc/hosts via the most ugly means possible | |
sed -n $(perl -e 'printf "%s", int(rand(int(`wc -l /etc/hosts`)))+1;')p /etc/hosts |