This file contains 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
#!/bin/bash | |
now=`date +"%Y-%m-%d" -d "05/06/2012"` | |
end=`date +"%Y-%m-%d" -d "05/23/2012"` | |
while [ "$now" != "$end" ] ; | |
do | |
now=`date +"%Y-%m-%d" -d "$now + 1 day"`; | |
echo $now | |
done |
This file contains 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
.fc { | |
direction: ltr; | |
text-align: left; } | |
.fc table { | |
border-collapse: collapse; | |
border-spacing: 0; } | |
.fc .btn { | |
line-height: 1.2em; } | |
html .fc { |
This file contains 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
/* tested on PhantomJS 1.6 */ | |
var page = require('webpage').create(), loadInProgress = false, fs = require('fs'); | |
var htmlFiles = new Array(); | |
// console.log(fs.workingDirectory); | |
// console.log(phantom.args[0]); | |
var curdir = phantom.args[0] || fs.workingDirectory; | |
var curdirList = fs.list(curdir); |
This file contains 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 ($, ko) { | |
ko.gridModel = function (requestData) { | |
var page = ko.observable(1), | |
pageSize = ko.observable(20).extend({ throttle: 0 }), | |
sortField = ko.observable().extend({ throttle: 0 }), | |
sortOrder = ko.observable('ASC').extend({ throttle: 0 }), | |
totalRows = ko.observable(), | |
items = ko.observableArray(); | |
var model = { |
This file contains 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"> | |
<title>Using AlloyEditor as an Angular directive</title> | |
<style type="text/css"> | |
.container { | |
margin-left: 30px; | |
margin-top: 30px; | |
} |