Skip to content

Instantly share code, notes, and snippets.

@FluidCoding
FluidCoding / designer.html
Last active December 13, 2015 09:28
designer
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@FluidCoding
FluidCoding / designer.html
Last active December 14, 2015 02:14
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
' Select Cases can be used to short - circuit to prevent errors like 4/0
OPTION EXPLICIT
DIM V : V = TRUE
SELECT CASE V
CASE TRUE
CASE Val
MsgBox "False"
END SELECT
Dim x
Redim y(1)
'Syntactical Sugar
' 1 Line If Else
Dim x : x = True
If x = True Then : MsgBox "True" : Else MsgBox "False"
x = False
If x = True Then : MsgBox "True" : Else MsgBox "False" : MsgBox "False2"
' 1 Line For Each
For Each v IN strAr : sout=sout&v : Next
@FluidCoding
FluidCoding / UT.js
Last active June 28, 2016 17:11
Lazy Testing
// Adds MouseOver to fill in values for inputs, for lazy devs without access to real unit testing
// Bookmarklet
javascript:(function(){inpts%20=%20document.querySelectorAll("input[type=radio]");[].forEach.call(inpts,%20(el)=>{el.onmouseover=(function(){this.checked=true;});});labls%20=%20document.querySelectorAll("label");[].forEach.call(labls,%20(el)=>{el.onmouseover=(function(){document.getElementById(this.attributes[0].value).checked=true;})});texts%20=%20document.querySelectorAll("textarea");[].forEach.call(texts,%20(el)=>{el.onmouseover=(function(){this.textContent=this.name+"%20Test";})});})();
// Mark inputs
function mouseMark(){
inpts = document.querySelectorAll("input[type=radio]");
[].forEach.call(inpts, (el)=>{
el.onmouseover=(function(){this.checked=true;});
});
@FluidCoding
FluidCoding / ECMASCript.md
Created July 7, 2016 07:01
ECMAScript Docs & Links

ECMAScript® 2015 Language Specification

ECMAScript® 2017 Language Specification

Keybase proof

I hereby claim:

  • I am fluidcoding on github.
  • I am sonnie (https://keybase.io/sonnie) on keybase.
  • I have a public key whose fingerprint is AB52 5935 D16D 5B35 8370 89DA 2333 DD3C AD1E 5245

To claim this, I am signing this object:

@FluidCoding
FluidCoding / Main.java
Created April 27, 2017 05:14
Rock Paper Scissors -- java
package com.fluidcoding;
// Brian Sonnie
import java.util.Random;
import java.util.Scanner;
public class Main {
private static final String ROCK = "rock";
private static final String PAPER = "paper";
private static final String SCISSORS = "scissors";
private static final String DONE = "done";
@FluidCoding
FluidCoding / Dates.vbs
Created May 15, 2017 08:53
Date Stuff VBScript
Option Explicit
Dim today : today = now
Dim tomorrow : tomorrow = DateAdd("d", 1, today)
MsgBox "Today Is: " & today
MsgBox "Tomorrow Is: " & tomorrow
Dim diffIndays : diffIndays = DateDiff("d", today, tomorrow)
MsgBox "Tomorrow Is: " & diffIndays & " day from today"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form action="" method="get">