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 / Static.vue
Created Jul 11, 2019
Vue Static Component
View Static.vue
<canvas ref="noise" id="noise"></canvas>
export default{
methods: {
generateNoise() {
this.$refs.noise.height = window.innerHeight
this.$refs.noise.width = window.innerWidth
leemartin / spotify-client-credentials.js
Created Jan 5, 2019
Generate Spotify client credentials
View spotify-client-credentials.js
const axios = require('axios')
let auth = Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString('base64')
method: 'post',
url: '',
View create-apple-music-playlist.js
// initialize axios instance
let apple = axios.create({
baseURL: '',
headers: {
'Authorization': `Bearer ${developerToken}`,
'Music-User-Token': `${musicUserToken}`
// create playlist
leemartin / create-spotify-playlist-with-artwork.js
Last active Dec 8, 2018
Create Spotify Playlist with Artwork
View create-spotify-playlist-with-artwork.js
// initialize axios instance
let spotify = axios.create({
baseURL: '',
headers: {
'Authorization': `Bearer ${token}`
// get user id for playlist creation
spotify.get('/v1/me').then(res => {
leemartin / Palette.vue
Created Sep 20, 2018
Turn Palette Color Picker
View Palette.vue
<li v-for="color in colors" :style="{ background: `rgb(${color[0]},${color[1]},${color[2]})`}" @click="selectColor(color)"></li>
export default{
props: ['colors'],
methods: {
leemartin / instagram-dl.js
Created Sep 11, 2018
Download Instagram Videos
View instagram-dl.js
// node instagram-dl.js BnmcJ-tnAey
const rest = require('restler')
const fs = require('fs')
const request = require('request')
rest.get(`${process.argv.slice(2)[0]}/?__a=1`).on('complete', function(data) {
var videoUrl = data.graphql.shortcode_media.video_url
var videoFilename = videoUrl.split("/")[videoUrl.split("/").length - 1]
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: '',
fileId: '',
nodeId: '',
images: null,
nodes: null
leemartin / musickit-token-encoder.js
Last active Jun 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 / artwork
Last active Aug 29, 2015
Artwork FM YouTube Embed
View artwork
<iframe frameborder='0' height='320' src='' width='320'></iframe>
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
height: $logo
width: $logo * 2
&:before, &:after
border-style: solid
You can’t perform that action at this time.