Skip to content

Instantly share code, notes, and snippets.

View ethanstenis's full-sized avatar

Ethan Stenis ethanstenis

View GitHub Profile
@ethanstenis
ethanstenis / bocket.xml
Last active February 5, 2016 01:17
ACA Full Stack Bocket App - Database Design Schema
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
@ethanstenis
ethanstenis / bitter.xml
Last active February 5, 2016 01:21
ACA Full Stack Bitter App - Database Design Schema
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
@ethanstenis
ethanstenis / Invodo-Test.html
Last active February 21, 2016 21:29
This is the html code for the Invodo Test
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Invodo Implementation Test">
<meta charset="utf-8">
<title>Invodo Implementation Test</title>
<script type="text/javascript" src="//e.invodo.com/4.0/s/developer.invodo.com.js"></script>
</head>
@ethanstenis
ethanstenis / Invodo-Test.js
Last active February 21, 2016 21:31
This is the javascript code for the Invodo Test
Invodo.init({
pageName: "Implementation Demo",
pageType: "other",
onload: function() {
window.onresize = function() {
videoResize();
};
videoResize();
@ethanstenis
ethanstenis / Brello.xml
Last active February 28, 2016 19:21
ACA full Stack Brello App Schema
<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
<sql>
<datatypes db="mysql">
<group label="Numeric" color="rgb(238,238,170)">
<type label="Integer" length="0" sql="INTEGER" quote=""/>
<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
@ethanstenis
ethanstenis / Postman POST PUT Requests.txt
Last active September 13, 2023 01:11
How to make Postman work with POST/PUT requests in Laravel...
To make Postman work with POST/PUT requests...
https://laravel.com/docs/5.2/routing#csrf-x-csrf-token
In addition to checking for the CSRF token as a POST parameter, the Laravel VerifyCsrfToken middleware will also check for the X-CSRF-TOKEN request header.
1. Store the token in a "meta" tag at the top of your root view file (layouts/app.blade.php)...
<meta name="csrf-token" content="{{ csrf_token() }}">
** If using jQuery, you can now instruct it to include the token in all request headers.
$.ajaxSetup({
$.getJSON("http://freegeoip.net/json/", function(data) {
// We need to evaluate the services for getting JSON - what should happen if this service goes down. We may need to code for that back-up.
var country = data.country_name;
var ip = data.ip;
// alert("country " + country);
// alert("IP " + ip);
var invodoVideoId = "";
@ethanstenis
ethanstenis / KATA: FizzBuzz
Created July 13, 2017 18:02
This is the solution to the FizzBuzz Kata
function fizzbuzz() {
for(let i=0; i <= 100; i++) {
if(i % 15 === 0) {
console.log('FizzBuzz');
} else if (i % 5 === 0) {
console.log('Fizz');
} else if (i % 3 === 0) {
console.log('Buzz');
} else {
console.log(i);
@ethanstenis
ethanstenis / KATA: Odd, Even, or Prime Number
Created July 13, 2017 18:03
This is the solution for the Odds/Even/Prime Number Kata
function oddEven() {
for(let i = 1; i <= 100; i++) {
if(i % 2 === 0) {
console.log('Even');
} else if (i % 2 !== 0 && i % 3 === 0 || i % 9 === 0 || i % 5 === 0){
console.log('Odd');
} else {
console.log(i);
}
}
@ethanstenis
ethanstenis / Verizon Samsung Galaxy S8 Interactive Video Embed Code
Created July 13, 2017 18:06
Verizon Samsung Galaxy S8 Interactive Video Embed Code
<iframeallowfullscreen="1" webkitAllowFullScreen id="interactiveExperience" width=720 height=405 class="embed-responsive-item" frameborder="0" src="https://ixd.invodo.com/verizon_embed/galaxy-test-index.html"></iframe>