I hereby claim:
- I am gabceb on github.
- I am gabceb (https://keybase.io/gabceb) on keybase.
- I have a public key ASC41clzTL3dQM9dHkLDX2xVJ-JrJXUBkMdp0HDDcDVWBQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Use absolute URLs to navigate to anything not in your Router. | |
# Only need this for pushState enabled browsers | |
if Backbone.history && Backbone.history._hasPushState | |
# Use delegation to avoid initial DOM selection and allow all matching elements to bubble | |
$(document).delegate("a", "click", (evt) -> | |
# Get the anchor href and protcol | |
href = $(this).attr("href") | |
protocol = "#{this.protocol}//" |
## This piece of code is not optimized for beauty or # of lines so don't judge :p | |
require 'open-uri' | |
require 'JSON' | |
url = "http://www.letsrevolutionizetesting.com/challenge" | |
while true do | |
url = url.gsub("challenge", "challenge.json") | |
json = JSON.parse(open(url).read) |
class ApplicationController < ActionController::Base | |
unless Rails.application.config.consider_all_requests_local | |
#rescue_from Exception, with: :render_500 | |
rescue_from ActionController::RoutingError, with: :render_canvas_404 | |
rescue_from ActionController::UnknownController, with: :render_404 | |
rescue_from AbstractController::ActionNotFound, with: :render_404 | |
rescue_from ActiveRecord::RecordNotFound, with: :render_404 | |
rescue_from ActiveResource::ForbiddenAccess, with: :render_403 | |
end | |
$xlFixedFormat = [Microsoft.Office.Interop.Excel.XlFileFormat]::xlOpenXMLWorkbook | |
write-host $xlFixedFormat | |
$excel = New-Object -ComObject excel.application | |
$excel.visible = $true | |
$folderpath = "C:\Users\gabceb\Documents\testXLS" | |
$filetype ="*xls" | |
Get-ChildItem -Path $folderpath -Include $filetype -recurse | | |
ForEach-Object ` | |
{ | |
$path = ($_.fullname).substring(0, ($_.FullName).lastindexOf(".")) |