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
Customize Your Bash Prompt | |
Your bash prompt comes with a standard command prompt with a default setting something like “PS1="\u@\h \w>” in your .bash_profile or .profile (if you are using OSX) that translates to something like this: | |
UserName YourComputerName DirectoryName $ | |
While useful, this is kind of boring and doesn’t give us very much information about the environment we’re working in. So let’s customize our prompts! | |
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
// Make a single api call to meetup.com and grab event info for all (11) PyLadies locations. Create individual objects for each so that meetups can be added to each pyladies group's div on pyladies.com/locations page. | |
//helper function to discover event urls and make active links | |
//credit to http://www.sencha.com/forum/archive/index.php/t-12379.html for code this is based on | |
function create_urls(input) { | |
return input | |
.replace(/(ftp|http|https|file):\/\/[\S]+(\b|$)/gim, '"$&" target="_blank"') | |
.replace(/([^\/])(www[\S]+(\b|$))/gim, '"http://$2" target="_blank"'); | |
} //end url parsing helper function |
NewerOlder