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
using System.Web; | |
namespace NetflixDemo | |
{ | |
public class AppHarborHttpContextWrapper : HttpContextWrapper | |
{ | |
private readonly HttpContext httpContext; | |
public AppHarborHttpContextWrapper(HttpContext httpContext) : base(httpContext) | |
{ |
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
Originally posted by Joel Abrahamsson | |
http://joelabrahamsson.com/entry/getting-property-and-method-names-using-static-reflection-in-c-sharp |
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
using System; | |
using RestSharp; | |
using RestSharp.Authenticators; | |
namespace UserVoice.Api | |
{ | |
public class UserVoiceOAuthToken | |
{ | |
public string OauthToken { get; set; } | |
public string OauthTokenSecret { get; set; } |
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
// requires request, measured, optimist and microtime npm modules | |
var util = require('util') | |
, request = require('request') | |
, microtime = require('microtime') | |
, measured = require('measured') | |
, collection = new measured.Collection('http') | |
, argv = require('optimist').usage('node load.js -c [concurrent] -n [total] url').argv; | |
var c = argv.c || 1 | |
, n = argv.n || 1, uri = argv._[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
using System; | |
namespace Defaults | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
new Foo().Bar(); | |
((IFoo) new Foo()).Bar(); |
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
using System; | |
using System.IO; | |
using FluentAssertions; | |
using NUnit.Framework; | |
using ProtoBuf; | |
namespace ProtoBuffs | |
{ | |
[ProtoContract] | |
public class AccessTokenV1 |
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
- (void)logout { | |
NSHTTPCookieStorage *cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage]; | |
NSArray *cheezburgerCookies = [cookies cookiesForURL:[NSURL URLWithString:@"http://cheezburger.com"]]; | |
for (NSHTTPCookie *cookie in cheezburgerCookies) { | |
[cookies deleteCookie:cookie]; | |
} | |
} |
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
-----> Node.js app detected | |
-----> Resolving engine versions | |
Using Node.js version: 0.10.9 | |
Using npm version: 1.2.24 | |
-----> Fetching Node.js binaries | |
-----> Vendoring node into slug | |
-----> Installing dependencies with npm | |
npm WARN package.json [email protected] No repository field. | |
npm http GET https://registry.npmjs.org/request |
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
openssl pkcs12 -export -out www.yourdomain.com.pfx -inkey www.yourdomain.com.key -in www.yourdomain.com.crt |
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 Load: RLMObject { | |
dynamic var localIdentifier: String? | |
dynamic var name: String? = "" | |
dynamic var loadDescription: String? = "" | |
dynamic var weapon: Weapon? = nil | |
dynamic var bullet: Bullet? = nil | |
dynamic var powder: Powder? = nil |
OlderNewer