Creating custom columns for your website
.row {
@include clearfix;
}
.column {
float: left;
<p data-bind="text: name"></p> | |
<script> | |
var viewModel = function () { | |
this.name = 'Ivan'; | |
}; | |
ko.applyBindings( viewModel ); | |
</script> |
<input data-bind="value: firstName" placeholder="first name"/> | |
<input data-bind="value: lastName" placeholder="last name"/> | |
<p data-bind="text: fullName()"></p> | |
<script> | |
var viewModel = function () { | |
var self = this; | |
self.firstName = ko.observable( 'Ivan' ); | |
self.lastName = ko.observable( 'M' ); |
<?php | |
namespace My_Namespace; | |
class My_Class { | |
public static function my_method () { | |
return 'wow'; | |
} | |
} |
// Inspired by https://github.com/andyw8/do_by | |
// Usage: | |
// TODO( 'Finish this feature', 'Decemeber 25, 2015' ); | |
// TODO( 'Finish this feature', '12/15/2015' ); | |
this.TODO = function () { | |
var message = arguments[0]; | |
var date = arguments[1] || false; | |
// TODO only set the hours to zero if no time is provided in the TODO |
Creating custom columns for your website
.row {
@include clearfix;
}
.column {
float: left;
#swatches .swatch { | |
float:left; | |
width:100px; | |
height:100px; | |
} |
var cube = function ( x ) { return [x * x * x, "Cube was called"]; }; | |
var square = function ( x ) { return [x * x, "Square was called"]; }; | |
var compose = function ( f, g ) { return function ( a ) { return f( g( a ) ); }; }; | |
var Debuggable = function ( f ) { | |
return function ( debugInfo ) { | |
var x = debugInfo[0], | |
s = debugInfo[1], |
<html> | |
<head> | |
<style> | |
#time { | |
width: 300px; | |
height: 40px; | |
margin: 10px auto; | |
padding: 30px; | |
font-family: verdana; |