thanks 4 putting source for a noob to learn a little
-
DocSets-for-iOS and paid 4 it too https://github.com/omz/DocSets-for-iOS/
-
Real Time Congress
| # Find the first matching element | |
| # Bad: | |
| first('.active').click | |
| # Good: | |
| find('.active').click | |
| find('.active', match: :first).click |
thanks 4 putting source for a noob to learn a little
DocSets-for-iOS and paid 4 it too https://github.com/omz/DocSets-for-iOS/
Real Time Congress
| // Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3. | |
| // | |
| // This is a hack to fill the gap between 480 and 767 pixels - a missing range | |
| // in the bootstrap responsive grid structure. Use these classes to style pages | |
| // on cellphones when they transition from portrait to landscape. | |
| // | |
| // Contains: | |
| // Columns, Offsets, Pushes, Pulls for the Mid-Small layout | |
| // Visibility classes for the Mid-Small layout | |
| // Redefined visibility classes for the Extra Small layout |
| var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m; | |
| var FN_ARG_SPLIT = /,/; | |
| var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/; | |
| var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; | |
| function annotate(fn) { | |
| var $inject = [], | |
| fnText, | |
| argText, | |
| last; |
| #include <stdio.h> | |
| #include <string.h> | |
| #include "zlib.h" | |
| #define TABLE_SIZE 50000 | |
| struct _Word { | |
| char *word; | |
| uInt count; | |
| }; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>popout testing</title> | |
| <style type="text/css"> | |
| #canvas{ | |
| height:412px; | |
| width:915px; | |
| background-image: url('canvas.jpg'); | |
| } |
| <?php | |
| include_once dirname(__FILE__)."/../../config.php"; | |
| //use global varible to pass the success/false flag to prevent $this and return | |
| //Assertion | |
| static $testResult = true; | |
| function should_be_true($value){ |
| def live_number(birthday) | |
| reduce("#{birthday.year}#{birthday.month}#{birthday.day}") | |
| end | |
| def reduce(sum) | |
| add_sum = each_digits(sum).reduce(:+) | |
| add_sum >= 10 ? reduce(add_sum) : add_sum | |
| end | |
| def each_digits(num) |
| #true/false | |
| target.should be | |
| # can connect to every method that ends with ? | |
| #ex : | |
| target.should be_admin | |
| # check target.admin? | |
| target.should be_true | |
| target.should be_false |
| #loadfile: | |
| $: | |
| $LOAD_PATH | |
| require File.join(File.dirname(__FILE__), "foo", "bar") #=> "file/foo/bar" | |
| #or | |
| require File.expand_path(File.join(File.dirname(__FILE__), "foo", "bar")) | |
| #=> "path/to/file/foo/bar" | |
| require "foo/bar" #=> relative to loadpath, do this in relative files |