Skip to content

Instantly share code, notes, and snippets.

Lee Martin leemartin

Block or report user

Report or block leemartin

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
@leemartin
leemartin / listen.js
Created Sep 7, 2018
Figma x Turn x Codepen
View listen.js
const app = new Vue({
el: '#app',
data() {
return {
figmaToken: '',
baseUrl: 'https://api.figma.com/v1',
fileId: '',
nodeId: '',
images: null,
nodes: null
@leemartin
leemartin / musickit-token-encoder.js
Last active Aug 24, 2019
Apple Music API Token for MusicKit
View musickit-token-encoder.js
"use strict";
const fs = require("fs");
const jwt = require("jsonwebtoken");
const privateKey = fs.readFileSync("AuthKey.p8").toString();
const teamId = "ABCDE12345";
const keyId = "ABCDE12345";
const jwtToken = jwt.sign({}, privateKey, {
@leemartin
leemartin / artwork
Last active Aug 29, 2015
Artwork FM YouTube Embed
View artwork
<iframe frameborder='0' height='320' src='http://www.youtube.com/embed/VIDEO_ID?autoplay=1&rel=0&autohide=1&controls=1&fs=0&modestbranding=1&showinfo=0&hd=1&vq=hd1080&color=white' width='320'></iframe>
@leemartin
leemartin / logo.sass
Created Feb 5, 2013
My new personal logo can be created completely with CSS borders.
View logo.sass
$white: #FFFFFF
$grey: #CCC
$logo: 75px
#logo
height: $logo
width: $logo * 2
&:before, &:after
border-style: solid
@leemartin
leemartin / sprites.coffee
Created Jan 25, 2013
WebRTC Sprites Generator
View sprites.coffee
$ ->
# Variables
photo = 0
size = 150
directions =
center: { x: size, y: size, i: "straight ahead" }
north: { x: size, y: 0, i: "up" }
northwest: { x: 0, y: 0, i: "up over your right shoulder" }
west: { x: 0, y: size, i: "right" }
southwest: { x: 0, y: size * 2, i: "at your right shoulder" }
@leemartin
leemartin / slots.coffee
Last active May 15, 2019
CSS3 Slot Machine
View slots.coffee
$ ->
result = []
count = 0
# Loop through each reel
$('.reel-outer'). each ->
$this = $(this)
index = $this.index()
spinPlus = 0
@leemartin
leemartin / widget.html
Created Apr 17, 2012
Email Unlock Widget
View widget.html
<iframe allowtransparency='true' frameborder='0' height='400' scrolling='no' src='YOUR_CAMPAIGN_URL/widget' width='300'></iframe>
@leemartin
leemartin / widget.html
Created Apr 17, 2012
Email Unlock Widget
View widget.html
<iframe allowtransparency='true' frameborder='0' height='400' scrolling='no' src='YOUR_CAMPAIGN_URL/widget' width='300'></iframe>
@leemartin
leemartin / topspin_vs_sc.js
Created Apr 12, 2012
TopSpin Purchase on SoundCloud
View topspin_vs_sc.js
// Initialize JS SDK
SC.initialize({
client_id: "YOUR_CLIENT_ID",
redirect_uri: "http://example.com/callback.html",
});
// Connect to SoundCloud
SC.connect(function(){
// Update one of the user's tracks' purchase url
@leemartin
leemartin / ontimedcomments.js
Created Apr 5, 2012
OnTimedComments Example
View ontimedcomments.js
SC.initialize({
client_id: "YOUR_CLIENT_ID"
});
SC.whenStreamingReady(function() {
SC.stream(TRACK_ID, {
ontimedcomments: function(comments) {
var comment, _i, _len;
for (_i = 0, _len = comments.length; _i < _len; _i++) {
You can’t perform that action at this time.