Using Android 4.2.2 as an example.
- Run the Android SDK Manager.
- Windows:
/SDK Manager.exe
- Windows:
| task :jekyll do | |
| puts '* Changing the codepage' | |
| `chcp 65001` | |
| puts '* Running Jekyll server' | |
| `jekyll --server` | |
| end |
| $iterator = new \RegexIterator( | |
| new \RecursiveIteratorIterator( | |
| new \RecursiveDirectoryIterator($path, \FilesystemIterator::SKIP_DOTS), | |
| \RecursiveIteratorIterator::LEAVES_ONLY | |
| ), | |
| '%^.*?(([^\\\]+?)\.png)$%', | |
| \RecursiveRegexIterator::GET_MATCH | |
| ); | |
| foreach ($iterator as $file) { |
| /** | |
| * @param dataAttributeName string | |
| * @param desiredDataAttributeValue string (optional) | |
| * (desiredDataAttributeValue must be a string, strict comparison is done with data attribute value) | |
| * | |
| * @author: adam-lynch | |
| */ | |
| $.fn.filterByDataAttribute = function(dataAttributeName, desiredDataAttributeValue){ | |
| return $(this).filter(function() { | |
| return desiredDataAttributeValue && $(this).data(dataAttributeName) === desiredDataAttributeValue |
| (function($){ | |
| var _oldOn = $.fn.on; | |
| $.fn.on = function( types, selector, data, fn, one ){ | |
| var selectorSegments = selector.match(/^(.+?)(:only)?$/); | |
| if ( selectorSegments[2] ) { | |
| /** | |
| * @param str string | |
| * | |
| * @return string | |
| * | |
| * @author adam-lynch | |
| */ | |
| var convertHyphenatedToCamelCase = function( str ){ | |
| return str.replace( /-([a-z])/g, function( matches ){ | |
| return matches[1].toUpperCase(); |
| /** | |
| * Gets the value of a GET argument (URL parameter). Returns undefined if the argument doesn't exist | |
| * | |
| * @param name string | |
| * @returns string|undefined | |
| * | |
| * @author adam-lynch | |
| */ | |
| function _GET( name ){ | |
| var regexS = "[\\?&]" + name.replace( /[\[]/, "\\\[" ).replace( /[\]]/, "\\\]" ) + "=([^&#]*)", |
| SELECT * | |
| FROM table_name | |
| WHERE LENGTH(column_name) != CHAR_LENGTH(column_name); |
| var e=document.querySelectorAll("*[id*=wrapper], *[class*=wrapper]"),r=["http://www.richincomeways.com/wp-content/uploads/2013/06/tupac.jpg","http://www.2freshbeats.com/wp-content/uploads/2012/05/snoop.jpg","http://cdn.hiphopwired.com/wp-content/uploads/2012/07/10428_The-Notorious-B_I_G_1.jpg"],rl=r.length;for(var i=0;i<e.length;i++){e[i].style.background="transparent url("+r[i%rl]+") center center repeat"};console.log( e.length); |
| alert(JSON.stringify(YOUR_OBJECT_HERE, null, 4));//from: http://stackoverflow.com/a/8611131/727074 |