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
| javascript: | |
| /* Build URI endpoint for Khan API */ | |
| var url="/api/v1/user/exercises/"+userExercise.exercise+"/problems/"+(userExercise.total_done+1)+"/attempt"; | |
| /* Slowly, but surely, collecting the data for a successfull API call */ | |
| var data={ | |
| complete:1, | |
| count_hints:0, | |
| time_taken:Math.floor(Math.random()*10), | |
| attempt_number:userExercise.total_done+1, |
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 | |
| // Base directory is where you run the script from | |
| $currentDirectory = '.'; | |
| // Get all contents, minus pointers to . and .. | |
| $baseLevelContents = array_diff( scandir( $currentDirectory ), array('..','.') ); | |
| // All directories | |
| $baseDirs = array_filter( $baseLevelContents, "is_dir" ); |
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 | |
| # Configure | |
| $DB_USER = 'admin'; | |
| $DB_PASS = 'qwerty'; | |
| $DB_HOST = 'localhost'; | |
| $DB_NAME = 'postgis-2-0'; | |
| // Param 3 when ran in shell will override this value | |
| $DB_TABLE = 'public.florida_establishments_garman'; | |
| // Param 2 when ran in shell will override this value | |
| $CATEGORY = 'misc'; |
This file has been truncated, but you can view the full file.
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
| Handlebars.registerHelper("everyOther", function (index, amount, scope) { | |
| if ( ++index % amount ) | |
| return scope.inverse(this); | |
| else | |
| return scope.fn(this); | |
| }); |
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
| -- DELETE duplicate entry | |
| DELETE | |
| FROM L_table | |
| WHERE id NOT IN (SELECT MIN(id) id | |
| FROM L_table | |
| GROUP BY l_field, etc ASC); |
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 | |
| /** | |
| * @author Arlo Carreon | |
| * | |
| */ | |
| class Permissions { | |
| // Bitmasks | |
| const REPORTS = 1; | |
| const QUIZES = 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
| var hotelObj = {"hotelId":"2653","p":"30","n":"America`s Best Inn Main Gate East","d":"In the Walt Disney World Resort Area offering FREE Shuttle Service! A great family vacation spot nearby the major theme parks of Orlando Florida.","lat":"28.3321","lng":"-81.4892","a":"All Orlando","aid":"19","v":"","url":"http:\/\/bookitsb.com\/us\/florida\/orlando\/hotels\/americas-best-inn-main-gate-east\/","nr":"0","sr":"25","tr":"","fr":"","tsm":"","rqm":"","r":"Deluxe Room","pr":"","su":"Near Disney, Kissimmee - Hotel with FREE Theme Park Shuttles","ma":"In the Walt Disney World Resort Area offering FREE Shuttle Service!","fc":"","i":"","am":"","li":"MCO","ln":"Orlando, Florida, United States","c":{"l":"BONUS","n":"JOINT TEST"},"st":"50","img":"\/\/images.bookit.com\/RA10168\/RA10168_227891_TN.jpg"}; | |
| window.buildHotelHTML = function( hotelData){ | |
| var str = '<div class="hidden pod resultsPod hotelResults rowClearOFH ' + '">\ | |
| <input type="hidden" name="hotelUniqueId" value="' + hotelData.hotelId + '" disabled="disabl |
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
| Starting build at 01/17/12 23:50 | |
| Build details: | |
| timestamp=12/13/10 21:20 | |
| version=1.5.0 | |
| githash=efb9caa | |
| Script arguments: |
NewerOlder