| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Bootstrap Masonry Template</title> | |
| <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700"> |
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
| var fn = function(arg1, arg2) { | |
| var str = '<p>aap ' + this.noot + ' ' + arg1 + ' ' + arg2 + '</p>'; | |
| document.body.innerHTML += str; | |
| }; | |
| var context = { | |
| 'noot': 'noot' | |
| }; | |
| var args = ['mies', 'wim']; | |
| // Calls a function with a given 'this' value and arguments provided individually. |
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 | |
| if ( ! function_exists( "sanitize_html_classes" ) && function_exists( "sanitize_html_class" ) ) { | |
| /** | |
| * sanitize_html_class works just fine for a single class | |
| * Some times le wild <span class="blue hedgehog"> appears, which is when you need this function, | |
| * to validate both blue and hedgehog, | |
| * Because sanitize_html_class doesn't allow spaces. | |
| * | |
| * @uses sanitize_html_class |
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
| var FormRepo = function (namespace) { | |
| /// <summary>Persistent form values, saves to localStorage</summary> | |
| /// <param name="namespace" type="String">the namespace to store values in localStorage</param> | |
| // should also protect per page, since we could have the same forms in various places | |
| this.N = namespace + '.' + window.location.pathname; | |
| }; | |
| $.extend(FormRepo.prototype, { | |
| namespace: function (key) { | |
| return this.N + '.' + key; |
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)
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
| // It is important to declare your variables. | |
| (function() { | |
| var foo = 'Hello, world!'; | |
| print(foo); //=> Hello, world! | |
| })(); | |
| // Because if you don't, the become global variables. | |
| (function() { |
NewerOlder