This file contains hidden or 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 is a test_file to give us an extra file to use |
This file contains hidden or 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 'faraday' | |
require 'base64' | |
require 'json' | |
first = "Sample" | |
last = "Name" | |
email = "sample" | |
urlencoded = URI.encode_www_form({'first' => first, 'last' => last, 'email' => email}) | |
api_key = 'f464931b7e4b8f00cfbff0dc95f73756' |
This file contains hidden or 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 'faraday' | |
require 'base64' | |
require 'json' | |
latitude = '37.77493' | |
longitude = '-122.419415' | |
api_key = 'O5EE3I72DNW2VXUOTH' | |
max = '3' | |
date = 'This week' | |
city = "Chicago" |
This file contains hidden or 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
jQuery -> | |
$("#modal-wrap").html("""<%= escape_javascript(render "account/events/edit", event: @event, product: @product) %>""") | |
$("#modal").trigger("reveal:close") | |
$("#modal").click(location.reload()) |
This file contains hidden or 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
{ | |
"auto_complete_commit_on_tab": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
".tags*", | |
"*.pyc", |
This file contains hidden or 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 "./mini_struct" | |
require "ostruct" | |
require "benchmark" | |
o_time = Benchmark.measure do | |
500_000.times do |num| | |
os = OpenStruct.new(id: num) | |
os.x = "xyz" | |
os.y = 4 | |
os.x = "lmn" |
This file contains hidden or 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
draggables = {} | |
jQuery.each jQuery(".ui-draggable"), (index, draggable) -> | |
draggable = jQuery(this) | |
child = draggable.children() | |
value = child.val() | |
classes = draggable.attr("class").replace(/ui-draggable|down|cloner/, "").replace(/ui-draggable|down|cloner/, "").replace(/ui-draggable|down|cloner/, "") | |
offset = draggable.offset() | |
left = offset.left | |
top = offset.top |
This file contains hidden or 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/sh | |
d=`date` | |
message=`git log -1 HEAD --format=format:%s` | |
branch=`git rev-parse --abbrev-ref HEAD` | |
echo "Added: "${d},${PWD##*/},${branch},${message}" to ~/commits/commits.csv" | |
`echo ${d},${PWD##*/},${branch},${message} >> ~/commits/commits.csv` | |
# You must run both of these in each dir you want the script to run: |
This file contains hidden or 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/sh | |
message=`git log -1 HEAD --format=format:%s` | |
branch=`git rev-parse --abbrev-ref HEAD` | |
data="`date`,${PWD##*/},${branch},${message}" | |
commit_log="~/commits/commits.csv" | |
echo $data >> $commit_log | |
echo "Added: $data to $commit_log" |
This file contains hidden or 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 :report do | |
task turn_around: :environment do | |
month = Date.new(2012,01,25) # Date GenieDocs v1.0 launched. | |
rows = [] | |
request_issue_types = [ | |
"Request/Authorization", "Request/Certificate of No Records", "Request/Legal", | |
"Request/Standard", "Request/Verification", "Request/Verify SS and/or DOB", | |
"Request/Required Location Info", "Request/Duplicate" | |
] |