Skip to content

Instantly share code, notes, and snippets.

View LAMike310's full-sized avatar

Mike Gnanakone LAMike310

  • Los Angeles
View GitHub Profile
@LAMike310
LAMike310 / gist:6137db771a8ef7906003
Last active August 29, 2015 14:04
HTML Email Starter Template
<html>
<style>
/* Client-specific Styles */
#outlook a {
padding: 0;
}
/* Force Outlook to provide a "view in browser" button. */
body {
width: 100% !important;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bank of America</title>
<style type="text/css">
/*Hotmail/Outlook.com Styles*/
.ExternalClass * {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bank of America</title>
<style type="text/css">
/*Hotmail/Outlook.com Styles*/
.ExternalClass * {
I am LAMike on Onename.io
Verifying that +lamike is my Bitcoin username. You can send me #bitcoin here: https://onename.io/lamike
var axios = require('axios')
axios.post('https://api.blockcypher.com/v1/bcy/test/txs/push',
{"tx": "01000000015e9d654ccdf376c21502152ad7eba61027c5860f35557729a45e356a7cdc9ad6000000008a47304402201f06d4679b3f835215c338bace1d8b317aeade5346309389b60f4d7753f5a710022033d9e5aafdd4154889b6ab71eb927b8879eeb3dc9c6c2e665e665485f71a4e0b014104f0087a849a6e9ebc5b3fb9090849a22b72c71564e165458a9957150a7dd24639f1f60746cbfa25950ec9bc7064a77141a78c5a309ff7cc0b90050e8a6a1a8ed7ffffffff02da210000000000001976a914fed9eb51a9d13032e4cf2d6a4856fe8bde18b18c88ac0000000000000000546a4c5177723335322d33316472342d4141412d30322d31362d31352d32336f6c2d313030303030303030302d33323132322d333435352d363933352d323334392d323334302d31323333322d30322d31302d313500000000"}
)
.then(function (response) {
console.log(response.data);
})
.catch(function (response) {
console.log(response.data);
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mike's Card Shop</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.18/vue.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"></script>
<style>
var axios = require('axios')
var Firebase = require('firebase')
var nextPageToken = ''
// Get the YT Channel Playlist ID from here:
// https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername={YOUTUBE_CHANNEL_NAME}&key={YOUR_API_KEY}
function saveVideoData(token) {
var ROOT_URL = "https://www.googleapis.com/youtube/v3/playlistItems?pageToken=" + nextPageToken + "&part=snippet&playlistId=UUzQUP1qoWDoEbmsQxvdjxgQ&key={YOUR_API_KEY}&maxResults=50&?"
axios.get(ROOT_URL)
.then(function (response) {
data = response.data;
@LAMike310
LAMike310 / getVideos.js
Created March 26, 2016 20:18
Get all videos from a YouTube channel
var axios = require('axios')
var Firebase = require('firebase')
var nextPageToken = ''
// Get the YT Channel Playlist ID from here:
// https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername={YOUTUBE_CHANNEL_NAME}&key={YOUR_API_KEY}
function saveVideoData(token) {
var ROOT_URL = "https://www.googleapis.com/youtube/v3/playlistItems?pageToken=" + nextPageToken + "&part=snippet&playlistId=UUzQUP1qoWDoEbmsQxvdjxgQ&key={YOUR_API_KEY}&maxResults=50&?"
axios.get(ROOT_URL)
.then(function (response) {
data = response.data;
➜ API git:(master) ✗ node gameData.js
[ { 'Short and formal names': 'A AAA',
'Membership within the UN System [Note 1]': 'A AAA',
'Sovereignty dispute [Note 2]': 'A AAA',
'Further information on status and recognition of sovereignty [Note 3]': '' },
{ 'Short and formal names': 'ZZZ↓ UN member states or observer states ↓',
'Membership within the UN System [Note 1]': 'A AAA',
'Sovereignty dispute [Note 2]': 'ZZZ',
'Further information on status and recognition of sovereignty [Note 3]': '' },
{ 'Short and formal names': 'ZZZAbkhazia → Abkhazia',