Skip to content

Instantly share code, notes, and snippets.

Ethan Stenis ethanstenis

Block or report user

Report or block ethanstenis

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
@ethanstenis
ethanstenis / bocket.xml
Last active Feb 5, 2016
ACA Full Stack Bocket App - Database Design Schema
View bocket.xml
<?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 Feb 5, 2016
ACA Full Stack Bitter App - Database Design Schema
View bitter.xml
<?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 Feb 21, 2016
This is the html code for the Invodo Test
View Invodo-Test.html
<!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 Feb 21, 2016
This is the javascript code for the Invodo Test
View Invodo-Test.js
Invodo.init({
pageName: "Implementation Demo",
pageType: "other",
onload: function() {
window.onresize = function() {
videoResize();
};
videoResize();
@ethanstenis
ethanstenis / Brello.xml
Last active Feb 28, 2016
ACA full Stack Brello App Schema
View Brello.xml
<?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 Dec 19, 2019
How to make Postman work with POST/PUT requests in Laravel...
View Postman POST PUT Requests.txt
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({
View herbalife.js
$.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 Jul 13, 2017
This is the solution to the FizzBuzz Kata
View KATA: FizzBuzz
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 Jul 13, 2017
This is the solution for the Odds/Even/Prime Number Kata
View KATA: Odd, Even, or Prime Number
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 Jul 13, 2017
Verizon Samsung Galaxy S8 Interactive Video Embed Code
View 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>
You can’t perform that action at this time.