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
| // testimonials | |
| window.addEventListener('DOMContentLoaded', function(evt){ | |
| var testimonials = document.querySelectorAll('.testimonial-group'); | |
| var current = []; | |
| for(var i = 0; i < testimonials.length; i++){ | |
| var children = testimonials[i].querySelector('ul').children; | |
| var left_nav = testimonials[i].querySelector('.controls .left'); | |
| var right_nav = testimonials[i].querySelector('.controls .right'); |
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
| function animate(callback, timeout){ | |
| var default_timeout = timeout || 50; // ms | |
| if(window['requestAnimationFrame']){ | |
| window.requestAnimationFrame.call(null, callback); | |
| }else { | |
| window.setTimeout.call(null, callback, default_timeout); | |
| } | |
| } |
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
| ipfor(){ | |
| ping -c 1 $1 | awk -F'[()]' '{print $2}' | sed '/^$/d' | |
| } | |
| hostfor(){ | |
| whois $(ping -c 1 tgins.com | awk -F'[()]' '{print $2}' | sed '/^$/d') | |
| } |
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
| sections: | |
| Daily: | |
| Interesting Links: | |
| - ... | |
| templates: | |
| Monthly: | |
| "templates/monthly.enml" |
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
| installwp(){ | |
| echo "Downloading Wordpress..." | |
| wget http://wordpress.org/latest.zip | |
| echo "Download complete, unzipping..." | |
| unzip latest.zip | |
| echo "Moving files..." | |
| mv wordpress/* . | |
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
| initproject(){ | |
| : ${1?Domain argument required} | |
| PROJECT_NAME=$1 | |
| CWD=`pwd` | |
| echo "Creating project at $CWD/$PROJECT_NAME..." | |
| mkdir $PROJECT_NAME && cd $PROJECT_NAME | |
| echo "Downloading Wordpress..." |
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
| #!/usr/bin/ruby | |
| require "open-uri" | |
| require "nokogiri" | |
| NUM_HITS = 50 | |
| def _request(url) | |
| begin | |
| open(url, :read_timeout => 5).read |
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><span style="font-size: 18px;">Logs</span></div> | |
| <ul> | |
| <li>...</li> | |
| </ul> | |
| <br /> | |
| <div><span style="font-size: 18px;">Meta</span></div> | |
| <ul> | |
| <li>Tasks Completed | |
| <ul> | |
| <li>...</li> |
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
| <?php | |
| function starburstApplicant() | |
| { | |
| $coding_skills = array("awesome", "ninja-like"); | |
| $people_skills = array("great", "super-duper"); | |
| $should_apply = false; | |
| if(in_array("awesome", $coding_skills) && in_array("great", $people_skills)) { | |
| $should_apply = true; |
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
| #!/usr/bin/env ruby | |
| # !IMPORTANT | |
| # requires evertils-common 0.3.4/0.3.4.1-dev | |
| require 'evertils/common' | |
| require 'notifaction' | |
| require 'date' | |
| en = Evertils::Common::Query::Simple.new |