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
class Metadata < ActiveRecord::Base | |
set_table_name "meta_metadata" | |
belongs_to :meta_object, :polymorphic => true | |
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
#!/bin/bash | |
# apt-get install jq | |
#set -eu | |
shopt -s nullglob | |
readonly base_dir=$1 | |
if [ -z "$base_dir" ] ; then | |
echo 'please location docker registry store location!'; | |
exit; | |
fi |
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
KEY_COLUMN = 2 | |
with csv.reader(f1) as csv1: | |
d1 = {r[KEY_COLUMN]: r for r in csv1} | |
with csv.reader(f2) as csv2: | |
d2 = {r[KEY_COLUMN]: r for r in csv2} | |
merged_dict = {x:d1[x] for x in d1 if x in d2} |
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
121 Recruitment | |
Abbeywood International Recruitment T/A ABW recruitment | |
ABRS Limited | |
AdRoc Limited | |
Advanced Resource Managers IT Limited |
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
< html input[type="button"], | |
< input[type="reset"], | |
> html input[type="button"], input[type="reset"], | |
< .row:before, .row:after { | |
> .row:before, | |
> .row:after { | |
< .row-fluid:before, .row-fluid:after { | |
> .row-fluid:before, | |
> .row-fluid:after { | |
< *margin-left: 85.0%; |
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
source "https://rubygems.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
raise "Check monkey patch for CVE-2015-3226 is still needed" unless Rails::VERSION::STRING == '3.2.22' | |
module ActiveSupport | |
module JSON | |
module Encoding | |
private | |
class EscapedString | |
def to_s | |
self | |
end | |
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
function __autoload( $sClass ) | |
{ | |
// Your own autoload code goes here | |
// Failed to load, try Kohana's autoloader | |
// Bootstrap it first | |
if ( !defined('SYSPATH') ) | |
{ | |
define('SYSPATH', ROOT.'kohana/system/'); | |
define('APPPATH', ROOT.'kohana/application/'); | |
define('EXT', '.php'); |
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
# Delete unnecessary files | |
run "rm public/index.html" | |
run "rm public/favicon.ico" | |
run "rm public/javascripts/prototype.js" | |
run "rm public/javascripts/effects.js" | |
run "rm public/javascripts/dragdrop.js" | |
run "rm public/javascripts/controls.js" | |
# Copy database.yml for distribution use | |
run "cp config/database.yml config/database.yml.example" |
OlderNewer