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 corSPLIT(input) { | |
function splitValue(value, index) { | |
//console.log(value.substring(0, index+1) + "#" + value.substring(index+1)); | |
return value.substring(0, index+1) + "#" + value.substring(index+1); | |
} | |
var corNumA = input.split(""); | |
//console.log(corNumA); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<link rel="icon" href="../../favicon.ico"> |
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
"devDependencies": { | |
"gulp": "~3.8.7", | |
"gulp-compass": "~1.1.3", | |
"gulp-concat": "~2.1.7", | |
"gulp-minify-css": "~0.3.0", | |
"gulp-notify": "^1.5.0", | |
"gulp-ruby-sass": "~0.2.0", | |
"gulp-uglify": "~0.1.0", | |
"gulp-util": "~2.2.12", | |
"gulp-watch": "~0.5.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
def show | |
puts "Outputting a very lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong lo-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-ong line" | |
@widget = Widget(params[:id]) | |
respond_to do |format| | |
format.html # show.html.erb | |
format.json { render json: @widget } | |
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
# http://www.rubeque.com/problems/reverse-each-word | |
# http://ruby-doc.org/core-2.0/Enumerable.html#method-i-inject | |
# After some refactoring both these methods work! | |
# Both use Enumerable#inject; however, the first removes the unecessary ' ' at the end of the string | |
# using string substitution, while the second uses a conditional to prevent the space from ever being added | |
def reverse_each_word(sentence) |
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
$(document).ready(function () { | |
$('#blogs').hover( | |
function () { | |
//show its submenu | |
$('ul', this).stop().slideDown(400); | |
}, | |
function () { | |
//hide its submenu | |
$('ul', this).stop().slideUp(200); | |
} |
NewerOlder