Skip to content

Instantly share code, notes, and snippets.

Alaina Hardie trianglegrrl

Block or report user

Report or block trianglegrrl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@trianglegrrl
trianglegrrl / CoreRFRemote
Created Apr 15, 2015
Spark Core code to control RF remote
View CoreRFRemote
//
// http://alainahardie.com/spark-me-up
//
// name the pins
int unlockPin = D2;
int lockPin = D3;
int lockState = 0;
// Send the unlock code
@trianglegrrl
trianglegrrl / api_get.py
Created Jul 22, 2015
SU GSP NCS API WTF
View api_get.py
import os
import requests
import json
# Photoresistor - light levels
#results = requests.get('https://api.particle.io/v1/devices/53ff6e066678505543482367/analog_value?access_token=3766bed852ce344d768142fe1cb41d4416d58b5d')
# Sound sensor
#results = requests.get('https://api.particle.io/v1/devices/54ff66066678574935400667/analog_value?access_token=3766bed852ce344d768142fe1cb41d4416d58b5d')
@trianglegrrl
trianglegrrl / pir.py
Created Jul 22, 2015
SU GSP NCS PIR WTF
View pir.py
import RPi.GPIO
import os
import time
from pyslack import SlackClient
import requests
import json
import string
url = "https://hooks.slack.com/services/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"
View pushbutton.py
import RPi.GPIO
import os
import time
from pyslack import SlackClient
import requests
import json
import string
url = "https://hooks.slack.com/services/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"
View index.html
<div data-role="page">
<div data-role="header" data-theme="d">
<h1><img src="http://www.precisionnutrition.com/wordpress/wp-content/themes/pn2012/images/pn_logo.png"/></h1>
</div>
<div data-role="content">
<p>Please enter your contact info below and we'll send your free stuff.</p>
<form action="http://get.pn/free" method="post">
<fieldset data-role="fieldcontain">
<label for="firstName">
First Name
View index.html
<div data-role="page">
<div data-role="header" data-theme="d">
<img src="http://www.precisionnutrition.com/wordpress/wp-content/themes/pn2012/images/pn_logo.png" style="padding: 5px 5px 0px 10px"/>
</div>
<div data-role="content">
<h1>Thanks for sharing your info!</h1>
<p>We'll send your free stuff as soon as Dr. Berardi gets back from the event.</p>
</div>
</div>
View gallery.html
View gist:6543387
CoachApp.IndexRoute = Ember.Route.extend
model: (params) ->
client_id = localStorage.getItem 'clientId'
localStorage.removeItem('clientId')
if client_id? and !isNaN(client_id, 10)
CoachApp.Client.findById client_id
afterModel: (client) ->
if client
@trianglegrrl
trianglegrrl / ember-cucumber.rb
Last active Feb 23, 2017
Testing Ember with Cucumber
View ember-cucumber.rb
# You need some sort of indication that an Ajax transaction exists. jQuery.active doesn't seem to do the
# trick, so we use the following JS (well, we use CoffeeScript, but whatever) that gets inserted into
# our application.
#
#$(function() {
# var body, doc;
# body = $('body');
# doc = $(document);
# doc.ajaxStart(function() {
# return body.addClass('ajax-in-progress').removeClass('ajax-quiet');
View keybase.md

Keybase proof

I hereby claim:

  • I am trianglegrrl on github.
  • I am alaina (https://keybase.io/alaina) on keybase.
  • I have a public key ASDawegqUTgzzL5oznjUSEcvQY2_9Dtp0oSrr7S3e8ocTwo

To claim this, I am signing this object:

You can’t perform that action at this time.