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
Show hidden characters
| { | |
| "theme": "Soda Light.sublime-theme", | |
| "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
| "fallback_encoding": "UTF-8", | |
| "font_options": | |
| [ | |
| "subpixel_antialias" | |
| ], | |
| "detect_indentation": false, | |
| "word_wrap": false, |
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
| { | |
| "extensions": | |
| [ | |
| "rb", | |
| "ru", | |
| "Gemfile", | |
| "Rakefile" | |
| ], | |
| "rulers": | |
| [ |
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 | |
| /** | |
| * Pgcache is a library used for caching elements using the built-in cache driver | |
| * | |
| * @author Demostenes Garcia <[email protected]> | |
| */ | |
| class Pgcache | |
| { |
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 (defined('BASEPATH')) OR exit('No direct script access allowed'); | |
| class MY_Controller extends CI_Controller | |
| { | |
| function __construct() | |
| { | |
| parent::__construct(); | |
| if (in_array($this->uri->segment(1), $this->config->item('ssl_pages'))) { | |
| force_ssl(); |
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 start_spp_navigation(totalImages) { | |
| $("#spp_elements").sspnavigation({ | |
| qtyImages: totalImages | |
| }); | |
| } |
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($){ | |
| $.fn.sspnavigation = function(options) { | |
| // Setting up the default data | |
| var defaults = { | |
| qtyImages: 0, | |
| childDelimiterStart: "<li>", | |
| childDelimiterEnd: "</li>" | |
| }; | |
| // Using defaults |
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
| import flash.external.*; | |
| import net.slideshowpro.slideshowpro.*; | |
| // On data load, get number of images | |
| my_ssp.addEventListener(SSPDataEvent.ALBUM_DATA, onSlideShowData); | |
| function onSlideShowData(event:SSPDataEvent) | |
| { | |
| if (event.type == "albumData") | |
| { | |
| ExternalInterface.call("start_spp_navigation", event.data.totalImages); |
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
| my_ssp.addEventListener(SSPDataEvent.ALBUM_DATA, onSlideShowData); | |
| function onSlideShowData(event:SSPDataEvent) | |
| { | |
| if (event.type == "albumData") | |
| { | |
| ExternalInterface.call("start_spp_navigation", event.data.totalImages); | |
| } | |
| } |
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
| <script> | |
| // Responsive design with adapt.js | |
| function resize_callback(i, width) { | |
| if (i > -1) { | |
| if (i == 0) | |
| $("body").removeClass().addClass("mobile"); | |
| else if (i == 1) | |
| $("body").removeClass().addClass("tablet"); | |
| else if (i == 2 || i == 3) | |
| $("body").removeClass().addClass("regular"); |
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
| $(document).ready(function() { | |
| var array = [ | |
| {first:'Isaac', last:'Newton', id: '1'}, | |
| {first:'Johannes', last:'Keppler', id:'2'}, | |
| {first:'Alessandro', last:'Volta', id: '3'}, | |
| {first:'Blaise', last:'Pascal', id: '4'} | |
| ]; | |
| $('#persons') | |
| .items(array) |