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
| window.initUploader = () -> | |
| uploader = new plupload.Uploader({ | |
| runtimes : 'html5,flash,silverlight,', | |
| browse_button : 'drop_zone_home', | |
| drop_element : 'drop_zone_home', | |
| container : 'uploadContainer', | |
| max_file_size : '10mb', | |
| url : '/posts', | |
| flash_swf_url : '/swf/plupload.flash.swf', | |
| silverlight_xap_url : '/swf/plupload.silverlight.xap', |
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
| if (index < sectionWidth) | |
| startIndex = 0 | |
| endIndex = 2 * sectionWidth |
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
| sectionWidth = 5 | |
| length = array.length |
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
| else if (index + sectionWidth) > (length + 1) | |
| startIndex = (length - 1) - (2 * sectionWidth) | |
| endIndex = (length - 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
| sectionWidth = 5 | |
| length = array.length | |
| if (index < sectionWidth) | |
| startIndex = 0 | |
| endIndex = 2 * sectionWidth | |
| else if (index + sectionWidth) > (length + 1) | |
| startIndex = (length - 1) - (2 * sectionWidth) | |
| endIndex = (length - 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
| <script src="https://raw.githubusercontent.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script> |
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="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div> |
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
| # blog post: http://blog.moski.me/2012/01/image-load-event-binding.html | |
| # Assuming All the images we want to preload reside in ".images-preload" | |
| imageTotal = $(".images-preload img").length | |
| imageCount = 0 | |
| $(".images-preload img").load( () -> | |
| if(++imageCount == imageTotal) | |
| console.log("Any Callback Function"); | |
| else |
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
| #blog post: http://blog.moski.me/2012/01/image-load-event-binding.html | |
| # Assuming All the images we want to preload reside in ".images-preload" | |
| imageTotal = $(".images-preload img").length | |
| imageCount = 0 | |
| $(".images-preload img").each( () -> | |
| $(@).attr('src', $(@).attr('src') + '?iemustdie=' + (new Date()).getTime())).load(() -> | |
| if(++imageCount == imageTotal) |
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
| # blog post http://blog.moski.me/2012/01/blog-post_26.html | |
| cd ~/Library/Application Support/Plex Media Server/Plug-ins | |
| git clone git@github.com:moski/istikana.bundle.git |