Skip to content

Instantly share code, notes, and snippets.

unsortedWords = ['f', 'fff', 'asb', 'a', 'asdfsd', '23', 'adsfadsf'];
unsortedWords.sort(function(a, b) {
var textA = a.toUpperCase();
var textB = b.toUpperCase();
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
});
{
  u'error': {
    u'message': u'Invalid entity reference key 4146.', 
    u'code': u'INVALID_KEY_OR_REF'
  }
}
@cooncesean
cooncesean / wallspace-thoughts.md
Created January 12, 2017 23:50
General thoughts and ideas about marketing, goals and open questions.

Wallspace Gist

This document contains ideas, goals, flows, modeling, marketing thoughts, etc.

Marketing

How do we describe the value add? How can we succinctly pitch this to venue owners, artists and buyers?

@cooncesean
cooncesean / the-garden.md
Last active December 1, 2016 23:37
Presented at Guidebook's 12/1/2016 All-Hands meeting. This is paraphrased and originally penned by one of Facebook's original developers.

The Garden

Scope

As an engineer, your job is to build things that solve problems. When you first join the company, you're assigned small tasks and you solve them. As you grow professionally, the domain of these problems increases. If you were gardening, you would be pulling weeds or planting flowers. Increasing your scope does not mean pulling more weeds or planting more flowers. What it really means is looking up from the ground at the garden in its entirety, considering how your section fits in, and helping to decide the garden's master plan.

Agency

In order to do this effectively you must have agency. Agency is the capacity of a person to act in the world. As a Guidebook employee, having agency over your world is critical to fully exploring the boundaries of the problems in your domain. I'm referring both to the code you write and the interactions you have within the company. Within the framework of your role, you quickly develop an understanding of how certain components fit together. U

[ { u'chargeAmount': 1000.0,
u'chargeDescription': u'',
u'chargeId': u'2c92a0fb415dd8f70141be93434b6227',
u'chargeName': u'Do-it-yourself Credit',
u'id': u'2c92a09448c4f11f0148cc73503470e8',
u'productName': u'Guidebook Enterprise',
u'quantity': 40.0,
u'serviceEndDate': u'2015-09-30',
u'serviceStartDate': u'2014-10-01',
u'subscriptionId': u'2c92a0fb415dd8f70141be9342c06215',
@cooncesean
cooncesean / poker-tournament.md
Last active August 30, 2016 17:19
Guidebook poker tournament rules.

Guidebook Poker Tournament Rules

Buy-In

The initial buy-in of $20 will get you 1,500 chips.

(20 * 5) + (16 * 25) + (5 * 100) + (1 * 500) = 1,500
Re-buys
<?xml version="1.0" encoding="UTF-8"?>
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" Destination="http://gears.local.test:8000/api/auth/saml/assertion-consumer-service/?format=json" ID="jfcpmemgmcifkfbefmpainhakkifieambgnfphcd" InResponseTo="gpllcjbjgjfgkninplhalfipifpdafneonimcioj" IssueInstant="2016-07-28T06:05:17Z" Version="2.0">
<saml:Issuer>http://www.nuskinkorea.co.kr/sso/saml2/idp</saml:Issuer>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="#jfcpmemgmcifkfbefmpainhakkifieambgnfphcd">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<?xml version="1.0" encoding="UTF-8"?>
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" Destination="http://gears.local.test:8000/api/auth/saml/assertion-consumer-service/?format=json" ID="bgmpjgehfobgkgepbjaohmcfladfbklaapacelji" InResponseTo="bcjkibjaembeempdgkicgbplmkkipinaebgjhcci" IssueInstant="2016-07-28T03:43:01Z" Version="2.0">
<saml:Issuer>http://www.nuskinkorea.co.kr/sso/saml2/idp</saml:Issuer>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" Destination="https://636e911f.ngrok.io/api/auth/saml/assertion-consumer-service/" ID="_ac0ac9af7c8f1cb84c060b8834b775fe" IssueInstant="2016-07-26T21:28:14.973Z" Version="2.0">
<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://accounts.google.com/o/saml2?idpid=C02i33ie3</saml2:Issuer>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<ds:Reference URI="#_ac0ac9af7c8f1cb84c060b8834b775fe">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<samlp:Response xmlns:samlp=\"urn:oasis:names:tc:SAML:2.0:protocol\" xmlns:saml=\"urn:oasis:names:tc:SAML:2.0:assertion\" Destination=\"http://gears.local.test:8000/api/auth/saml/assertion-consumer-service/?format=json\" ID=\"eamkoiaajjcglmnogdeglkmeijicbmdcghaifmgf\" InResponseTo=\"obnhpcgdgiikfcolkmakkjjlampndbnmfahdkfbf\" IssueInstant=\"2016-07-27T06:18:16Z\" Version=\"2.0\">
<saml:Issuer>http://www.nuskinkorea.co.kr/sso/saml2/idp</saml:Issuer>
<Signature xmlns=\"http://www.w3.org/2000/09/xmldsig#\">
<SignedInfo>
<CanonicalizationMethod Algorithm=\"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments\" />
<SignatureMethod Algorithm=\"http://www.w3.org/2000/09/xmldsig#rsa-sha1\" />
<Reference URI=\"\">
<Transforms>
<Transform Algorithm=\"http://www.w3.org/2000/09/xmldsig#enveloped-signature\" />
</Transforms>