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
| Ndabe zitha nkosi yethu mholi wezwe lethu lefatshe la bonata rona lea halalela busa le lizwe bo busa le lizwe bo busa le lizwe bo Lethu busa. Ngoxolo is'khathi sifikile is'khathi busa iyo is'khathi sifikile busa lomhlaba is'khathi sifikile is'khathi sifikile. Busa simba busa bimba. Hem na iyo hem na iyo mem na nkosi bo. Busa simba iyo hem na iyo. Oh busa simba iyo Hem na iyo. Oh busa nkosi bo Hem na nkosi bo. Oh busa simba iyo busa simba iyo. Busa simba iyo ubuse ngo thando. Ubuse ngo thando ubuse. Ngo xolo busa simba, busa simba ubuse ngo xolo. Ubuse ngo thando ubuse ngo xolo. Ubuse ngo thando ubuse ngo xolo. |
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
| /* | |
| Polyfill for the Object.watch/Object.unwatch functions available in Mozilla browsers | |
| https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/watch | |
| you have a test here: | |
| http://www.telecable.es/personales/covam1/deployToNenyures/SourceCode/Object.watch.test.js | |
| and can read more here: | |
| http://deploytonenyures.blogspot.com.es/2013/02/objectwatch-polyfill.html | |
| */ |
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
| #element{ | |
| background-image: url('/images/sprite.png'); | |
| background-repeat: no-repeat; | |
| background-position: -3px 0; | |
| } | |
| @media print, screen, | |
| (-webkit-min-device-pixel-ratio: 1.25), | |
| (~`"-o-min-device-pixel-ratio: 1.25/1"`), | |
| (min--moz-device-pixel-ratio: 1.25), |
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 generateToken() { | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8); | |
| return v.toString(16); | |
| }); | |
| } |
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
| curl "http://example.com/users.json" | python -mjson.tool |
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(){ | |
| //allowed domains | |
| var whitelist = ["foo.example.com", "www.example.com"]; | |
| function verifyOrigin(origin){ | |
| var domain = origin.replace(/^https?:\/\/|:\d{1,4}$/g, "").toLowerCase(), | |
| i = 0, | |
| len = whitelist.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
| String.prototype.isValidPhone = function() { | |
| var filter = /^[0-9a-zA-Z\s.:#\(\)\+\-]+$/; | |
| if (!filter.test(this)) { | |
| return false; | |
| } else { | |
| return true | |
| } | |
| } |
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
| String.prototype.isValidEmail = function() { | |
| var filter = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/; | |
| if (!filter.test(this)) { | |
| return false; | |
| } else { | |
| return true | |
| } | |
| } |
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
| Scope.prototype.find = function(name, options) { | |
| if (this.check(name, options)) { | |
| return true; | |
| } | |
| this.add(name, 'var'); | |
| return 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
| if (!Array.prototype.first) | |
| { | |
| Array.prototype.first = function(predicate) | |
| { | |
| "use strict"; | |
| if (this == null) | |
| throw new TypeError(); | |
| if (typeof predicate != "function") | |
| throw new TypeError(); | |