=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
BrainFuck Programming Tutorial by: Katie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| <label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
| <select id="country" name="country" class="form-control"> | |
| <option value="Afghanistan">Afghanistan</option> | |
| <option value="Åland Islands">Åland Islands</option> | |
| <option value="Albania">Albania</option> | |
| <option value="Algeria">Algeria</option> | |
| <option value="American Samoa">American Samoa</option> | |
| <option value="Andorra">Andorra</option> | |
| <option value="Angola">Angola</option> |
| // add to Preferences > Key Bindings - User | |
| // see http://stackoverflow.com/a/26619524 for context | |
| { "keys": ["tab"], "command": "expand_abbreviation_by_tab", | |
| "context": [ | |
| { | |
| "operand": "source.js", | |
| "operator": "equal", | |
| "match_all": true, | |
| "key": "selector" |
| // language exceptions | |
| var exceptions = { | |
| "are": "were", | |
| "eat": "ate", | |
| "go": "went", | |
| "have": "had", | |
| "inherit": "inherited", | |
| "is": "was", | |
| "run": "ran", | |
| "sit": "sat", |
| function Color(r, g, b) { | |
| if (Array.isArray(r)) { | |
| colors = r; | |
| } else if (!g && !b) { | |
| colors = this.asRGB(r); | |
| } else { | |
| colors = [r, g, b]; | |
| } | |
| this.r = colors[0]; | |
| this.g = colors[1]; |
| function fmtWholeNum (num) { | |
| var n = parseFloat(num.toString().replace(/[^\d\.]+/, '')), | |
| s = Math.floor(n).toString(); | |
| return s.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") | |
| } |
| /* Simple JS template rendering function */ | |
| function render(obj, template) { | |
| var re, v; | |
| re = new RegExp("\\[\\[([^\\]]+)\\]\\]"); | |
| while (match = re.exec(template)) { | |
| val = obj[match[1]] || ''; | |
| template = template.replace(match[0], val); | |
| } | |
| return template; | |
| } |
| #!/usr/bin/env ruby -w | |
| # pnginator.rb: pack a .js file into a PNG image with an HTML payload; | |
| # when saved with an .html extension and opened in a browser, the HTML extracts and executes | |
| # the javascript. | |
| # Usage: ruby pnginator.rb input.js output.png.html | |
| # By Gasman <http://matt.west.co.tt/> | |
| # from an original idea by Daeken: http://daeken.com/superpacking-js-demos |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"