Skip to content

Instantly share code, notes, and snippets.

@jafstar
jafstar / gist:b50a90e48cfd7b20bee110a86eb41893
Created February 10, 2019 19:24
React make box matrix
{Array(10).fill(
<div className={styles.dash_row}>
{Array(35).fill(
<div className={styles.dash_cell}></div>
)
}
</div>
)
}
<!DOCTYPE html>
<html>
<head>
<title>CSS Grid Test</title>
</head>
<body>
<div class="wrapper">
<div class="header"></div>
<div class="menu">
<!DOCTYPE html>
<html>
<head>
<title>CSS Grid Test</title>
</head>
<body>
<div class="wrapper">
<div class="header"></div>
<div class="menu">
http://geosoft.no/development/android.html
##DIRECTORIES USED
"%ANDROID_HOME%"\build-tools\19.1.0\
"%ANDROID_HOME%"\platform-tools\
%JAVA_HOME%\bin\
##COMPILE
@jafstar
jafstar / deck2.html
Last active December 1, 2016 22:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Texas Holdem Simulator</title>
<meta charset="UTF-8" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
@jafstar
jafstar / gist:647ee38f2b8b12090883
Created February 18, 2015 19:56
Sublime Text Search Console.log
(?<!//)console.log
@jafstar
jafstar / gist:3abfd63b9b70ff62c4d7
Created October 24, 2014 20:18
Cayley Example
http://blog.thefrontiergroup.com.au/2014/10/look-cayley/
// paths that lead to users of the tools
var a = g.V('sass').In('uses')
var b = g.V('sublime text').In('uses')
// Who uses both tools
var c = a.Intersect(b).ToArray()
// What tools are used by all of those people
/*********************************************************************
#### Twitter Post Fetcher! ####
Coded by Jason Mayes 2013.
www.jasonmayes.com
Please keep this disclaimer with my code if you use it. Thanks. :-)
Got feedback or questions, ask here: http://goo.gl/JinwJ
http://jsfiddle.net/abenlumley/xRwam/4/
Ammended by Ben Lumley and djb31st 2013
www.dijitul.com
Ammended to display latest tweet only with links
@jafstar
jafstar / ajaxLoadImagesProgress.html
Last active November 16, 2016 15:44
AJAX Load Images with Progress Bar
<!DOCTYPE HTML>
<html>
<head>
<title>AJAX TEST</title>
</head>
<body>
<div id="gallery">
<div id="b0" class="block">
@jafstar
jafstar / gist:6936517
Created October 11, 2013 15:18
Vanilla JS
//VARS
var $ = document;
var doc = $;
$.id = function(x){
return this.getElementById(x);
}
$.class = function(x){
var e = document.getElementsByTagName('*');