Skip to content

Instantly share code, notes, and snippets.

View HarryLovesCode's full-sized avatar

Harry Gould HarryLovesCode

  • CONA Services, LLC.
  • Atlanta,GA
  • 22:39 (UTC -04:00)
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" type="image/x-icon" href="https://static.codepen.io/assets/favicon/favicon-aec34940fbc1a6e787974dcd360f2c6b63348d4b1f4e06c77743096d55480f33.ico" />
<link rel="mask-icon" type="" href="https://static.codepen.io/assets/favicon/logo-pin-8f3771b1072e3c38bd662872f6b673a722f4b3ca2421637d5596661b4e2132cc.svg" color="#111" />
<title>CodePen - Blackjack</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<style>
.headerContainer {
@HarryLovesCode
HarryLovesCode / main.js
Created December 20, 2017 00:35
TV Pairing
let smartcast = require('vizio-smart-cast');
let readline = require('readline');
let tv = new smartcast('172.10.1.156');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
tv.pairing.initiate().then((response) => {
@HarryLovesCode
HarryLovesCode / main.js
Created December 20, 2017 00:33
TV Discovery Output
{ ip: '172.10.1.156',
name: 'Harry\'s TV',
manufacturer: 'VIZIO',
model: 'E43u-D2' }
@HarryLovesCode
HarryLovesCode / main.js
Created December 20, 2017 00:31
TV Discovery
let smartcast = require('vizio-smart-cast');
smartcast.discover((device) => {
console.log(device);
});
@HarryLovesCode
HarryLovesCode / .vimrc
Last active February 9, 2017 19:27
New .vimrc file
" ================ Vundle Config =====================
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'rust-lang/rust.vim
@HarryLovesCode
HarryLovesCode / index.html
Created February 21, 2016 01:43
Super Heroe New Tab Chrome
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello Harry</title>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Quicksand:300);
body {
background-size: cover;
use vm::{Address, Byte, Nibble};
pub type Register = Nibble;
pub type Vx = Register;
pub type Vy = Register;
pub enum Opcode {
/// CALLS RCA 1802 at program address NNN
Sys(Address),
/// CLEARS the contents of the video buffer
@HarryLovesCode
HarryLovesCode / rust.js
Created December 21, 2015 05:23
Rust playpen JavaScript
var PLAYGROUND_URL = "https://play.rust-lang.org/evaluate.json";
function runProgram(source, optLevel, callback, element) {
var request = new XMLHttpRequest();
var data = JSON.stringify({
version: "nightly",
optimize: optLevel.toString(),
code: source
});
@HarryLovesCode
HarryLovesCode / file1.txt
Created November 19, 2015 17:22
Created via API
Demo