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
table { | |
width: 100%; | |
border-collapse: collapse; | |
table-layout:fixed; | |
font-size: 10px; | |
} | |
/* Zebra striping */ | |
tr:nth-of-type(odd) { | |
background: #eee; | |
} |
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 typing() { | |
var canvas = document.getElementById('canvas'); | |
if (!canvas || !canvas.getContext) return false; | |
var ctx = canvas.getContext('2d'); | |
var x = 0; | |
var myname = ['H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd']; | |
name(); | |
function name() { | |
for (var i = 0; i < myname.length; i++) { |
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
@location_list = [ | |
['Mushrooms', 3], | |
['Onions', 1], | |
['Olives', 1], | |
['Zucchini', 1], | |
['Pepperoni', 2] | |
] | |
<%= raw @location_list.as_json %> |
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
<%= link_to raw("<i class=\"icon-question-sign icon-white\"></i> Help"), "/help" %> |
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 extractor(query) { | |
var result = /([^,]+)$/.exec(query); | |
if(result && result[1]) | |
return result[1].trim(); | |
return ''; | |
} | |
var subjects = <%= raw autohash.to_json %>; | |
$('#search').typeahead({ | |
source: subjects, |
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(){ | |
$('#typeahead').typeahead({ | |
source: function (query, process) { | |
return $.getJSON( | |
'lookup.json', | |
{ query: query }, | |
function (data) { | |
return process(data); | |
}); | |
} |
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() { | |
$('#someInput').keyup(function() { | |
$('#someDiv').text($(this).val()); | |
}); | |
}); |
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
if you are at the site root: | |
current_page?('/') | |
or, if you defined map.root in your config/routes.rb: | |
current_page?(root_url) |
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
puts `ls` |
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
$username = ''; | |
$password = ''; | |
$strSql = "SELECT user_pass FROM wp_users WHERE user_login = '$username'"; | |
$result = mysql_query($strSql); | |
$row = mysql_fetch_array($result); | |
$encpass = $row['user_pass']; | |
if(!is_null($encpass)) { | |
include('classhash.php'); |
OlderNewer