⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYSQL | |
----------- | |
Run this on the command line. Not in mysql console. | |
eg. $alberta_makeever: mysql -u root -p user_development << sample.sql | |
mysql5 -u root -p | |
enter password:kwame1 | |
mysql> exit; | |
Create a database on the sql server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE profs; | |
USE profs; | |
CREATE TABLE professors ( | |
name varchar(30) NOT NULL, | |
specialization varchar(20), | |
salary double(8,2), | |
CONSTRAINT prof_pk PRIMARY KEY (name)); | |
CREATE TABLE students ( |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files": | |
{ | |
"Backbone.js": "http://backbonejs.org/backbone.js", | |
"CSS-reset": "http://meyerweb.com/eric/tools/css/reset/reset.css", | |
"Less.js": "https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.min.js", | |
"RegEx: xregexp.com": "http://cdnjs.cloudflare.com/ajax/libs/xregexp/2.0.0/xregexp-min.js", | |
"cycle": "http://malsup.github.com/jquery.cycle.all.js", | |
"html5shiv": "https://raw.github.com/aFarkas/html5shiv/master/dist/html5shiv.js", | |
"infinite_scroll": "https://raw.github.com/paulirish/infinite-scroll/master/jquery.infinitescroll.min.js", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Swift Programming Language Guide | |
"A Swift Tour" Solutions | |
https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html#//apple_ref/doc/uid/TP40014097-CH2-XID_1 | |
These are the solutions to all the "experiments" in the pre-release Swift Programming Guide. | |
You should be able to copy-paste it into your own playground. Let me know if I screwed | |
any of them up, and I'll be happy to update this gist. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here is my main nginx.conf | |
---------------------------------------------------------------------------------------------------- | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
include /usr/share/nginx/modules/*.conf; | |
events { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1><span>Responsive Navigation Menu</span> Using Only CSS</h1> | |
<header> | |
<section> | |
<a href="https://www.linkedin.com/in/sutharmayur" id="logo" target="_blank">Mayur Suthar</a> | |
<label for="toggle-1" class="toggle-menu"><ul><li></li> <li></li> <li></li></ul></label> | |
<input type="checkbox" id="toggle-1"> | |
<nav> |
OlderNewer