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
git checkout dev && git branch --merged dev | grep -v "\* dev" | grep -v "staging" | xargs -n 1 git branch -d |
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
http://www.missiontolearn.com/2013/10/self-directed-learning-success/ | |
1. Takes initiative | |
2. Is comfortable with independence | |
3. Is persistent | |
4. Accepts responsibility | |
5. Views problems as challenges, not obstacles | |
6. Is capable of self-discipline | |
7. Has a high degree of curiosity | |
8. Has a strong desire to learn or change |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>English / Spanish Document</title> | |
<style> | |
.menu { | |
background-color: #ccc; | |
list-style: none; | |
} |
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
/** | |
* Send it a string of words and it will return | |
* @return array of clean tags | |
*/ | |
protected function tagCleaner($tags = null){ | |
// make lowercase | |
$tags = strtolower($tags); | |
// remove the crap | |
$tags = str_replace([',', '|', '/', '.', '#'], '', $tags); | |
// explod string at space into tags |
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
/** | |
* @return an array of rgb values | |
*/ | |
protected function hex2rgb($hex = null ){ | |
return sscanf($hex, "#%02x%02x%02x"); | |
} |
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
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { | |
} | |
/* Extra Small Devices, Phones */ | |
@media only screen and (min-width : 480px) { |
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
DB::connection()->enableQueryLog(); | |
$query = DB::getQueryLog(); | |
$lastQuery = end($query); | |
dd($lastQuery); |
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
pbcopy < ~/.ssh/id_rsa.pub |
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
chown -R apache:apache filename |
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
(function($) { | |
// Lets Begin :) | |
})(jQuery); |