This file contains hidden or 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
| #include <iostream> | |
| #include <stdlib.h> | |
| #include <cmath> | |
| #include <ctime> | |
| using namespace std; | |
| int main() | |
| { | |
| int reps = 0; | |
| cout << "Enter number of repititions then press enter." << endl; | |
| cin >> reps; |
This file contains hidden or 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
| # append this to the bottom of your ~/.profile or ~/.bash_profile | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| function proml { | |
| local BLUE="\[\033[0;34m\]" | |
| local RED="\[\033[0;31m\]" | |
| local YELLOW="\[\033[0;33m\]" |
This file contains hidden or 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
| console.log("%c Never gonna give you up! ", "background-image:url(http://tinyurl.com/nggyugif);font-size:48px;font-family:zapfino;color:#FFF"); |
This file contains hidden or 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
| var timer; | |
| function showSpinner() { | |
| var i = 0; | |
| var css = "font-size: 32px; color: red;"; | |
| clearInterval(timer); | |
| timer = setInterval( | |
| function () { | |
| console.clear(); | |
| // console.log(timer); |
This file contains hidden or 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
| var timer; | |
| var cycle = " ░▒▓█▓▒░"; | |
| function showRainbow() { | |
| var offset = 0; | |
| var css = "font-family:'Arial Black'; font-size: 32px; color: red;"; | |
| clearInterval(timer); | |
| timer = setInterval( | |
| function () { | |
| console.clear(); |
This file contains hidden or 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
| <div class="fpo placeholder {{styleModifier}}"> | |
| {{! #large }} | |
| <img src="../../images/placeholder/{{styleModifier}}.jpg" class="large" alt="Placeholder for {{styleModifier}}, large" /> | |
| {{! / large }} | |
| {{# medium}} | |
| <style> | |
| @media screen and (max-width: 960px) { | |
| .placeholder.{{styleModifier}} img.large { | |
| display: none; |
This file contains hidden or 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
| // updateView() | |
| // render all projects to projectList | |
| projectsData | |
| .filter(isProjectActive) | |
| .filter(containsSearchTerm) | |
| .sort(byDate) | |
| .map(renderProject) | |
| .map(appendProjectToListView); |
This file contains hidden or 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
| // Store all the Z-Indexes that matter in your life. | |
| // Add an id to the list. Items will be ordered based on the order in the list. | |
| // To reorder the z-indexes, just reorder the list | |
| // Use @include z-index(id); to set the z-index of your element. | |
| $z-indexed-elements: ( | |
| always-on-top-of-everything-button | |
| hamburger-nav | |
| important-button---but-not-that-important | |
| unnecessary-animation |
This file contains hidden or 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
| ifconfig en0 | grep inet\ | grep -E '(\d{1,3}\.){3}\d{1,3}' | awk '{print $2}' |
This file contains hidden or 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
| "0" : 48 | |
| "1" : 49 | |
| "2" : 50 | |
| "3" : 51 | |
| "4" : 52 | |
| "5" : 53 | |
| "6" : 54 | |
| "7" : 55 | |
| "8" : 56 | |
| "9" : 57 |