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 / SolarizedPalette.css
Created September 27, 2015 13:34
Solarized Palette
/* Solarized Palette - http://ethanschoonover.com/solarized ---------
lightgray : #819090;
gray : #708284;
mediumgray : #536870;
darkgray : #475B62;
darkblue : #0A2933;
darkerblue : #042029;
paleryellow : #FCF4DC;
paleyellow : #EAE3CB;
yellow : #A57706;
@theWhiteFox
theWhiteFox / Linux Ubuntu Commands
Last active January 21, 2018 11:54
Linux Ubuntu Commands
sudo rm -r /opt/LightTable /usr/bin/lighttable #remove a program lighttable
sudo apt-get upgrade
whereis <command> - This will give you the directory of the command
ssh-add -l - Check what keys you have
pwd - Shows you what directory you’re in
/usr/local/google/home/keeganb
rm <filename> - delete a file
Rmdir <directory> to remove folder
Mv - Move?
Copying
@theWhiteFox
theWhiteFox / Javac
Created March 10, 2016 12:31
Javac
Javac *.java // compile all java files
@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 / 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
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
<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>
<!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
}
@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.

@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),