View wp-importer.rb
require "jekyll-import"
JekyllImport::Importers::WordpressDotCom.run({
"source" => "wp-export.xml"
})
View seed_migrate.patch.rake
# Call with rake app:db:reset
namespace :app do
namespace :db do
# Patches seed_migration issue #22
desc "Reset database incl. seeding migration"
task :reset => :environment do
puts "Resetting database..."
begin
View cssmin-font-family-regex.js
/(\}\.form-group>\.form-control\{)(.[^}]+)(?:font-family:([^,;}]+))/i
View Array.prototype.compare.js
Array.prototype.compare = function(array) {
if (!array) {
return false;
}
if (this.length !== array.length) {
return false;
}
for (var i = 0, l = this.length; i < l; i++) {
if (this[i] instanceof Array && array[i] instanceof Array) {
if (!this[i].compare(array[i])) {
View release-cleanup.sh
#!/bin/bash
KEPT_RELEASES=5
CWD=/Users/ain/temp
# Check for Bash config
# On FreeBSD/OS X GNU ls is required for -v option
if [ -f ~/.bashrc ]; then
shopt -s expand_aliases
source ~/.bashrc
View email-regex.js
var emailRegex = /^([\wäöüÜÖÄß])+(([\.]{0,1}[\wäöüÜÖÄß])?)*(([\+]{0,1}[\wäöüÜÖÄß])?)*([\wäöüÜÖÄß-])*\@([\wäöüÜÖÄß-]+\.)+([\w]{2,})+$/;
View Keyboard-et.plist.part
<key>Roman-Accent-Q</key>
<dict>
<key>Direction</key>
<string>right</string>
<key>Keycaps</key>
<string>` ^ ° • ★ “ ”</string>
<key>Strings</key>
<string>` ^ ° • ★ “ ”</string>
</dict>
View poster.php
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<pre><?php print_r($_REQUEST); ?></pre>
</body>
</html>
View netbeans_ignore.regex
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess|jshintrc|DS_Store|gitattributes|gitignore$|.*\.yml$).*$
View uniqid.js
function uniqid (prefix, more_entropy) {
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + revised by: Kankrelune (http://www.webfaktory.info/)
// % note 1: Uses an internal counter (in php_js global) to avoid collision
// * example 1: uniqid();
// * returns 1: 'a30285b160c14'
// * example 2: uniqid('foo');
// * returns 2: 'fooa30285b1cd361'
// * example 3: uniqid('bar', true);
// * returns 3: 'bara20285b23dfd1.31879087'