Skip to content
View letter.txt
Mr. Hultgren,
Due to your short-sightedness regarding the rules governing the Internet security bill, CISPA, I will be voting for another candidate in the next election.
Thank you for your service.
Sincerely,
Stephen Wright
View gist:2500771
class ActionDispatch::Routing::Mapper
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end
end
BCX::Application.routes.draw do
draw :api
draw :account
draw :session
View pain.vb
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents txtSpecialInstructions As Telerik.WebControls.RadEditor
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
View AccountController.rb
class AccountController < Wicked::WizardController
steps :start, :info, :address, :billing, :review
def show
end
end
View _form.html.erb
<% form_for(@album, :html => { :multipart => true }) do |f| %>
<p>
<%= f.label :name %>
<%= f.text_field :name %>
</p>
<h2>Photo(s)</h2>
<div id="photos">
<% if @album.new_record? %>
View test.js
var a = [];
a.constructor;
var numbers = [];
numbers[5] = 4;
numbers.length; //6
View tumblr.theme.html
{block:Following}
<section id="following" class="clearfix">
<div class="grid_12">
<div>
<header>
<h2>Following</h2>
</header>
<ul class="clearfix">
{block:followed}
<li><a title="{FollowedTitle}" href="{FollowedURL}"><img src="{FollowedPortraitURL-40}"></a></li>
View ip_check.php
<?php
function GetIP()
{
foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key)
{
if (array_key_exists($key, $_SERVER) === true)
{
foreach (array_map('trim', explode(',', $_SERVER[$key])) as $ip)
{
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false)
View EmailReport.cs
protected void btnRuns_Click(object sender, EventArgs e)
{
var rs = new rs2005.ReportingService2005();
var rsExec = new rsExecService.ReportExecutionService();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials;
rs.Url = "http://<ReportServer>/ReportServer/ReportService2005.asmx";
rsExec.Url = "http://<ReportServer>/ReportServer/ReportExecution2005.asmx";
string _reportName = @"/Path/To/Report";
View CurlService.php
<?php
class CurlService {
function __construct($url) {
$this->url = $url;
}
private $url;
Something went wrong with that request. Please try again.