Skip to content

Instantly share code, notes, and snippets.

View BrandonMathis's full-sized avatar
🌸
me like code

Brandon Mathis BrandonMathis

🌸
me like code
View GitHub Profile
$sizes: [sm, med, lg, xl];
$color--black: #FFF;
$base-spacing: 1em;
.section {
background-color: $color--black;
@for $i from 1 through length($sizes) {
$size: nth($sizes, $i);
&--#{$size} {
puts "Hello World"
@BrandonMathis
BrandonMathis / questions.md
Last active July 14, 2017 15:26
JS Trivia Questions

Coined by Marc Andreessen, this was the original name for the JavaScript language before being changed by Sun in December 1995.

  • What is Mocha

Brendan Eich, the creator of JavaScript, was originally recruited by Netscape to implement this language in the browser.

  • Scheme

This expression evaluates to undefined even if undefined has been reassigned.

  • void 0

Deprecated 2 years ago, this was was the original name for the Babel.js transpiler

Coined by Marc Andreessen, this was the original name for the JavaScript language before being changed by Sun in December 1995.
- What is Mocha
Brendan Eich, the creator of JavaScript, was originally recruited by Netscape to implement this language in the browser.
- Scheme
This expression evaluates to undefined even if undefined has been reassigned.
- void 0
Deprecated 2 years ago, this was was the original name for the Babel.js transpiler
@BrandonMathis
BrandonMathis / index.js
Created April 27, 2017 13:40
Watson Image Recognition Slack Bot
require('dotenv').config();
const RtmClient = require('@slack/client').RtmClient;
const WebClient = require('@slack/client').WebClient;
const RTM_EVENTS = require('@slack/client').RTM_EVENTS;
const VisualRecognitionV3 = require('watson-developer-cloud/visual-recognition/v3');
const fs = require('fs');
const request = require('request');
const path = require('path');
const rtm = new RtmClient(process.env.SLACK_TOKEN);
@BrandonMathis
BrandonMathis / modules.md
Created January 19, 2017 15:46
Modules for sale
class CoinChanger
def make_change(n)
coins = []
(n/25).times { coins << 25 }
n = n % 25
(n/10).times { coins << 10 }
n = n % 10
(n/5).times { coins << 5 }
n = n % 5
n.times { coins << 1 }
# prompt style and colors based on Steve Losh's Prose theme:
# http://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
#
# vcs_info modifications from Bart Trojanowski's zsh prompt:
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt
#
# git untracked files modification from Brian Carper:
# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
export VIRTUAL_ENV_DISABLE_PROMPT=1
<?xml version="1.0"?>
<SalesOrders>
<OrderHeader>
<WupOrderId>adc739459d556aef58ea94af692273</WupOrderId>
<WupCustId>1</WupCustId>
<OrderActionType>A</OrderActionType>
<OrderDate>2015-08-12T13:30:05-04:00</OrderDate>
<CustomerID/>
<CustomerName>Siennaaaa Bartolettiaaa</CustomerName>
<CustomerEmail>trey.waelchi1@valleyforgefabricstest.com</CustomerEmail>
diff --git a/public/xml_schemas/syspro.xsd b/public/xml_schemas/syspro.xsd
index f7ce7f1..7328128 100644
--- a/public/xml_schemas/syspro.xsd
+++ b/public/xml_schemas/syspro.xsd
@@ -30,7 +30,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="OrderDetails" minOccurs="0">
+ <xs:element name="OrderDetails">