Skip to content

Instantly share code, notes, and snippets.

@thinsoldier
thinsoldier / instructions.md
Last active March 30, 2017 07:14
Cloud9 c9 shankster bhavshashank showing how he could have sent his changes from zip file to github via Cloud9

2017-03-30

Log into c9.io and open one of your workspaces

Go to the terminal for that workspace.

Make a new folder:

mkdir shankster

var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if(computerChoice <= 0.33){
computerChoice = "rock";
}
else if(computerChoice >= 0.34 && computerChoice <= 0.66){
computerChoice = "paper";
}
@thinsoldier
thinsoldier / index.html
Last active August 20, 2017 21:45
VueJs 2 vs JQuery Comparision - jquery
<!-- https://youtu.be/HQDkXTlgY14 -->
<input type="text" class="js-filter"> Full Regular Expression Search (case insensitive)
<ul class="js-posts"></ul>
@thinsoldier
thinsoldier / index.html
Last active August 20, 2017 21:47
VueJs 2 vs JQuery Comparision - vue
<!-- https://youtu.be/HQDkXTlgY14 -->
<div id="app">
<input type="text" v-model="query"> Full Regular Expression Search (case insensitive)
<ul>
<li v-for="item in filteredItems">{{item}}</li>
</ul>
@thinsoldier
thinsoldier / index.html
Last active August 22, 2017 17:25
Refactor - Basic Portfolio Filtering System
<main>
<section id="controls">
<ul class="filter-controls">
<li class="active"data-category="">All</li>
<li data-category="landscape">Landscape</li>
<li data-category="urban">Urban</li>
<li data-category="portrait">Portrait</li>
</ul>
</section>
<div class="grid-wrapper">
@thinsoldier
thinsoldier / gradient.css
Last active August 25, 2017 01:43
testing overlapping gradients with transparency
body:before{
content:'';
position: fixed;
top:0;
bottom:0;
width: 100%;
background-image:
radial-gradient(circle, transparent, #006),
linear-gradient(to bottom, transparent 30%, yellow,orange,green);
height: 100vh;
@thinsoldier
thinsoldier / fluent-setinterval-and-settimeout.markdown
Last active September 2, 2017 05:51
fluent setinterval and settimeout
@thinsoldier
thinsoldier / coding-math-5-arctangent-pt-2.markdown
Last active September 19, 2017 22:44
Coding Math 5 - Arctangent pt. 2
@thinsoldier
thinsoldier / gist:bf3b364c59d154af59a1ab17a0c716a8
Created September 8, 2018 21:54
dev.bahamasrealty.com quicksearch layout css grid idea
@supports( display: grid)
{
#quicksearch form {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
grid-gap: .5em;
min-height: 208px;
justify-content: center;
}