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
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 |
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
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 |
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
#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. |
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
class AccountController < Wicked::WizardController | |
steps :start, :info, :address, :billing, :review | |
def show | |
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
<% 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? %> |
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 a = []; | |
a.constructor; | |
var numbers = []; | |
numbers[5] = 4; | |
numbers.length; //6 |
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
{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> |
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
<?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) |
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
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"; |
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
<?php | |
class CurlService { | |
function __construct($url) { | |
$this->url = $url; | |
} | |
private $url; |