Skip to content

Instantly share code, notes, and snippets.

View stursby's full-sized avatar

Charlie Hield stursby

  • Minneapolis, MN
View GitHub Profile
@stursby
stursby / instructions.md
Last active June 22, 2023 18:56
The Trade Desk + Google Web Designer clickTAG Instructions
  1. Drag a new Tap Area component into the scene and make sure it’s on the top layer.
  2. Resize the layer to match the banner dimentions and rename it tradeDeskClickTag. (After setup is done, you can hide and lock this layer)
  3. Right click the Tap Area and select Add Event. Next, under the Tap Area dropdown, select Touch/Click.
  4. In the Action section, under the Custom dropdown, select the Add custom action.
  5. Name the function clickEvent and the paste the following JavaScript code in the textarea:
window.open(window.clickTAG)
@stursby
stursby / test.js
Created July 30, 2019 16:42
Bottleneck example
const axios = require('axios')
const Bottleneck = require('bottleneck')
const limiter = new Bottleneck({
maxConcurrent: 1,
minTime: 5000
})
const urls = [
'https://jsonplaceholder.typicode.com/users',
@stursby
stursby / README.md
Last active July 10, 2019 15:59
Craft 3.2 Headless Preview
  1. This assumes you’ve got Craft 3.2 running and the CraftQL plugin installed 🙌🏻

  2. Create a Section named Home and then attach a field named Copy to your field layout.

  3. Add a Preview Taget (in the Home section settings) with the label Local pointing to the URL http://localhost:3000

image

  1. Go into the Home entry and click Preview button, then switch to Local target.
@stursby
stursby / README.md
Last active May 13, 2022 07:41
Vue + Firebase + Auth Demo

Vue + Firebase + Auth Demo

A simple App using Vue.js & Firebase with Auth.

See the DEMO.

@stursby
stursby / fonts.css
Created July 12, 2016 14:24
System font stack
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
@stursby
stursby / one-liner.md
Last active May 19, 2016 15:56
linux web permissions

Apache

sudo chown -R www-data:www-data /var/www/html/

nginx

sudo chown -R www-data:www-data /usr/share/nginx/html/
@stursby
stursby / tip.md
Last active May 12, 2016 15:07
Dynamic shebang
#!/usr/bin/env <language>

Example

#!/usr/bin/env python
@stursby
stursby / info.md
Last active December 22, 2015 20:09
Raspberry Pi boot SMS IP address script

Raspberry Pi boot SMS IP address script

Set environment variables

Open .bashrc

sudo nano ~/.bashrc
@stursby
stursby / LOC.md
Created December 4, 2015 16:39
Count number LOC (line of code)
find . -name "*.js" | xargs cat | wc -l

(via Slideshare).

@stursby
stursby / README.md
Last active September 23, 2015 14:54
Deploy Meteor to Heroku

Create remote staging branch with custom name "my-app-name". This will become my-app-name.herokuapp.com

heroku create my-app-name --remote staging

Add the Meteor build pack Meteor Buildpack Horse

heroku buildpacks:set https://github.com/AdmitHub/meteor-buildpack-horse.git