Skip to content

Instantly share code, notes, and snippets.

View chevcast's full-sized avatar

Alex Ford chevcast

View GitHub Profile
router.get('/google', function (req, res) {
var url = 'http://www.google.com';
request(url, function (err, response, body) {
res.send(body.replace(/(action|src|href)="((?!http)[^"]*)"/gi, function (match, g1, g2) {
return g1 + '="' + url + g2 + '"';
}));
});
});
@chevcast
chevcast / emailRegex.js
Created October 2, 2014 02:35
HTML 5 Email Validation Regular Expression
/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/
javascript:(function () {var s = document.createElement('script');s.setAttribute('src', '//fontbomb.ilex.ca/js/main.js');document.body.appendChild(s);}());

Step 1 - Redirect user to spotify so they can authorize their account.

res.redirect(
  `${spotifyRootUrl}/authorize?response_type=code&client_id=${spotifyClientId}&redirect_uri=${encodeURIComponent(redirectUri)}`
);

Step 2 - Create an endpoint for Spotify to redirect the user to and get the authorization code Spotify passed in.

app.get("/auth/spotify/callback", (req, res) => {

Campaign Setting

First, your characters have so far lived their lives within a fairly large region known as the Solar Plains. Moderate climate, wispy clouds here and there but an otherwise clear sky most days, except for on the horizon. The horizon is shrouded in mist. Above the mist is what appears to be an absolutely massive dome that makes up the sky. At the apex of this dome is the sun. The sun is always directly overhead and there is no night time. Your characters have never experienced night time and do not know what a night sky looks like, nor do they even have a concept of stars. The sun takes up a massive 50% of the sky.

Within the Solar Plains are a variety of towns and territories that so far have always gotten along peacefully with an abundance of resources for all. Plenty of food, water, clothing and supplies, etc.

There are conflicts here and there, but nothing major such as war. At least not during your lifetimes, however long those may be. The dome appears to be painted or carved, despite

Campaign Rules

1. Be Respectful & Pay Attention

Please remember that your Game Master has put in time and effort (probably more than you realize) into the campaign you asked to participate in. Be respectful and pay attention. If you are playing other games, browsing social media, chatting, etc. it's more obvious than you probably think and it detracts from everyone's experience. A player being absent is less distracting than a player who can be heard typing in the background for long periods or consistently has no idea what is going on in the game. We understand that people have responsibilities such as kids, partners, work calls, etc. that may need your attention suddenly and that's not an issue unless it happens frequently and you are in a [STRICT] campaign (see rule 2).

2. Respect the [STRICT] Tag

We have different campaign styles and are pretty relaxed in most of them. However, sometimes we want to take a campaign more seriously, particularly if it's an official adventure module. Loo

Create new object called Referral_Submission__c

Fields:

  • Referrer__c

    Referrer__r relationship to Referrer__c object.

  • Lead__c

    Lead__r relationship to Lead object.

  • Opportunity__c > Opportunity__r relationship to Opportunity object.

Starting Level: 3

Playable Races

  • Aasimar (only one and comes with a catch)
  • Changeling (only one and comes with a catch)
  • Dragonborn
  • Dwarf
  • Elf
  • Firbolg
[alias]
st = status -sb
ci = commit
br = branch
co = checkout
df = diff
ready = rebase -i @{u}
lg = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
standup = log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cD) %C(bold blue)<%an>%Creset' --since yesterday --author Alex
purr = pull --rebase

Texas Hold'em Terminology

ACTION

  • One's turn to act during a hand.
  • To bet or raise.
  • Used to describe a game in which there is a lot of betting and raising.

ALL-IN
A bet that places all of a player's chips into the pot.