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
import immutable from 'immutable'; | |
import request from 'superagent'; | |
import userSession from './store/userSession'; | |
const OAUTH_TOKEN = 'Authorization'; | |
function doRequest(req, headers={}) { | |
let token = userSession.store.current.get('access_token'); | |
if (token) { | |
headers[OAUTH_TOKEN] = `Bearer ${token}`; |
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
{ | |
"name": "The name of the event", | |
"share_url": "This should be the URL used by the share button, i.e. to the page on arcadenw.org", | |
"event_types": [ "Array", "of", "event", "types" ], | |
"location": { | |
"name": "The name of the location", | |
"street_address": "The street address", | |
"city": "The city", | |
"state": "The state", | |
"zip": "The zip", |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type Product struct { | |
Name string | |
Price float64 `json:",string"` |
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 |
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
-----> 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
- (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
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
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
// 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] |
NewerOlder