Skip to content

Instantly share code, notes, and snippets.

View theWhiteFox's full-sized avatar
👑
Crafting Web UI Apps

Stíofán ♔ Ó Conchubhair theWhiteFox

👑
Crafting Web UI Apps
View GitHub Profile
@theWhiteFox
theWhiteFox / PureJS_ButtonClick
Last active October 5, 2016 13:33
Pure JS button click
<div id="option">
<button class="valueButton"
value="0">0
</button>
<button class="valueButton"
value="1">1
</button>
<button class="valueButton"
value="2">2
</button>
@theWhiteFox
theWhiteFox / d3js-moving-xaxis-along-with-line.markdown
Created September 20, 2016 10:54
D3JS Moving xAxis along with line
@theWhiteFox
theWhiteFox / SQL-commands
Created August 9, 2016 09:15
SQL commands
-- login to my local MySql server
mysql -u root -p
-- password:
SHOW databases;
CREATE DATABASE db_name;
USE db_name;
SHOW tables;
CREATE TABLE table_name (
id int(10) NOT NULL AUTO_INCREMENT,
foreign_key_id int(10),
@theWhiteFox
theWhiteFox / bootstrap-snippet-login-form.markdown
Created August 9, 2016 08:03
Bootstrap Snippet: Login Form

Bootstrap Snippet: Login Form

Using default Bootstrap 3.0, here's a short CSS snippet to style your login form.

A Pen by Ace Subido on CodePen.

License.

<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style type="text/css" src="gauge.css">
.chart-gauge
{
width: 400px;
margin: 100px auto
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.3/nv.d3.min.js"></script>
<script src="https://rawgit.com/enplore/nvd3-charts/master/gauge.js"></script>
<script src="https://rawgit.com/enplore/nvd3-charts/master/gaugeChart.js"></script>
<div id="gauge-chart">
<svg></svg>
</div>
Type vimtutor into terminal for a “how to” guide
Try playing VIM Adventures, search for it in Google
Helpful Link
http://www.cs.colostate.edu/helpdocs/vi.html
:q - Quit Editing
:q! - Quit without questioning it
*u - Undo/redo
dw - deletes word starting with the letter where the cursor sits
*o - add new line and enter text
@theWhiteFox
theWhiteFox / Python Django
Last active April 29, 2016 11:29
Python Django, term
python -V // shows 2.7.6
python3 -V // shows 3.4.0
django-admin.py version // 1.10.dev20160420170647
@theWhiteFox
theWhiteFox / index.html
Last active May 21, 2016 13:05
Bootstrap Template CDN
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bootstrap CDN</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap core CSS -->
<link href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" media="screen">
@theWhiteFox
theWhiteFox / Javac
Created March 10, 2016 12:31
Javac
Javac *.java // compile all java files