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="/scripts/require.js"></script> | |
| <script src="/scripts/require.config.js"></script> | |
| <script> | |
| require(['slider'], function ($) { | |
| console.log($); // jquery with slider | |
| //console.log($('.slide').nivoSlider({})); | |
| }); | |
| </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
| Object.prototype.getName = function() { | |
| var funcNameRegex = /function (.{1,})\(/; | |
| var results = (funcNameRegex).exec((this).constructor.toString()); | |
| return (results && results.length > 1) ? results[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
| main = putStrLn "Hello, World!" |
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
Show hidden characters
| { | |
| "theme": "Soda Dark 3.sublime-theme", | |
| "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", | |
| // "color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
| // "theme": "Spacegray.sublime-theme", | |
| // "color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
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 Animal() { | |
| /* properties */ | |
| this.isWild = true; | |
| this.name = ''; | |
| this.sound = ''; | |
| this.height = 0; // cm | |
| this.weight = 0; // kg | |
| this.speed = 0; // km/h | |
| this.age = 0; // years old |
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
| <?php | |
| class Foo { | |
| public function bar() { | |
| return "bar"; | |
| } | |
| public static function baz() { |
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
| // Full docs: https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest | |
| var xhr, | |
| url = "menu.html", | |
| method = "GET"; | |
| if (XMLHttpRequest) { | |
| // code for IE7+, Firefox, Chrome, Opera, Safari | |
| xhr = new XMLHttpRequest(); | |
| } 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
| <?php | |
| function foo() { | |
| $numargs = func_num_args(); | |
| echo "Number of arguments: $numargs<br />\n"; | |
| if ($numargs >= 2) { | |
| echo "Second argument is: " . func_get_arg(1) . "<br />\n"; | |
| } |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title contenteditable>Hey, buddy!</title> | |
| <style class="default"> | |
| * { | |
| transition: all .5s ease; | |
| } |
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
| puts(1, "Hello, World!") |