Skip to content

Instantly share code, notes, and snippets.

View exelxior's full-sized avatar

Binh Nguyen exelxior

  • Anaheim, California
View GitHub Profile
@exelxior
exelxior / wp-download.sh
Created July 5, 2016 16:07 — forked from HoundstoothSTL/wp-download.sh
Download Wordpress through terminal and cleanup
#!/bin/bash
#Download the latest copy of WordPress into a directory, grab all the files in the new /wordpress folder
#Put all the files in the current directory, remove the now empty /wordpress directory
#Remove the tarball
#download latest wordpress with wget
wget http://wordpress.org/latest.tar.gz
#OR using CURL
<!DOCTYPE html>
<html>
<head>
<title>Task 6</title>
<style>
body {
font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 20px 50px 150px;
font-size: 13px;
text-align: center;
@exelxior
exelxior / Centering CSS
Created February 28, 2015 04:15
Centering texts in a span in an image
/** table-cell/vertical-align: middle **/
.parent {
width: 100%;
height: 100%;
display: table;
text-align: center;
}
.parent > .child {
display: table-cell;
vertical-align: middle;
@exelxior
exelxior / swap.c++
Created January 30, 2015 17:58
Swapping two numbers without a third variables
void swap(int *x, *y) {
if (x == y) // Check if two addresses are the same
return x;
*x = *x + *y;
*y = *x - *y;
*x = *x - *y;
}
//
@exelxior
exelxior / RemoveEditWithSublimeText.reg
Last active August 29, 2015 14:14
Remove newly added "Open with Sublime Text 3" feature from regedit.
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text 3]
[-HKEY_CLASSES_ROOT\Folder\shell\Edit with Sublime Text 3]
@exelxior
exelxior / EditWithSublimeText3.reg
Last active August 29, 2015 14:14
Add "Open with Sublime Text 3" feature to Windows Explorer Context Menu. Sublime text 3, 32-bit version.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\Edit with Sublime Text 3]
@="Edit with Sublime Text 3"
"Icon"="\"C:\\Program Files (x86)\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Folder\shell\Edit with Sublime Text 3\command]
@="C:\\Program Files (x86)\\Sublime Text 3\\sublime_text.exe \"%1\""
[HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text 3]