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
var query = window.location.search.substring(1); | |
var query = query.split("&"); | |
for(i = 0; i < query.length; i++) { | |
var split = query[i].split('='); | |
var target = split[0]; | |
var value = split[1]; | |
if (target === "full_name") { | |
var split_name = value.split('%20') |
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 ruby | |
file = ARGV.first | |
count = %x( wc -l #{file}).split.first.to_i | |
puts "Number of line in the file: #{count}" | |
min = 0 | |
max = count | |
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/sh | |
# | |
# This script is triggered before every commit | |
# It raises an alert when Gemfile or Gemfile.lock has been modified. | |
# This is usefull when using localy a gem that must be included in Gemfile ( a degugger for instance). | |
# To enable this hook, rename this file to "pre-commit" and add it to .git/hooks/ | |
# of C/P the following block in your existing .git/hooks/pre-commit | |
#IMPORTANT - for the hook to be active run: |