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
# | |
# Simple VCB can be used to drive vcb backups from more than one | |
# server. The list must be comma separated. The names will be used as the actual URL | |
# | |
vcb.servers=vsphere,vcenter | |
# | |
# vsphere config: | |
# the name is the actual server name and will be used as the url | |
# user, password: self explanatory |
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
;NSIS Modern User Interface | |
;Rsync Windows Service Script | |
;Written by Umberto Nicoletti http://unicolet.blogspot.com/ | |
!define SCRIPT_VERSION "1.0" | |
;-------------------------------- | |
;Include Modern UI | |
!include "MUI2.nsh" |
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
If you have ruby-1.9.2, good. I used rvm, and did a recent install with | |
rvm install ruby-1.9.2 | |
rvm --default use 1.9.2 | |
Then to the SproutCore parts: | |
gem install sproutcore [The console output indicated SproutCore 1.6] | |
cd to your dev area, e.g. .../Development/sproutcore |
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
# | |
# Use these commands to install sproutcore official (and development version) | |
# on Ubuntu linux | |
# | |
# Tested on Lucid Lynx provisioned by vagrant (http://vagrantup.com/) | |
# | |
sudo apt-get install curl | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
source /home/vagrant/.rvm/scripts/rvm | |
source /home/vagrant/.profile |
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
diff --git a/apps/todos/main.js b/apps/todos/main.js | |
index 7fbd18a..06ccd2e 100644 | |
--- a/apps/todos/main.js | |
+++ b/apps/todos/main.js | |
@@ -28,7 +28,8 @@ Todos.main = function main() { | |
Todos.store.find(SC.Query.local(Todos.Todo, 'isCompleted = true'))); | |
// Focus the new todos item | |
- Todos.mainPage.getPath('mainPane.newTodoField.field').becomeFirstResponder(); | |
+ Todos.mainPage.get('field').becomeFirstResponder(); |
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
#!/usr/bin/nodejs | |
# run from jsts directory, the script expects lib to be a subdir of current dir | |
var i = require('./lib/javascript.util.js'); | |
var j = require('./lib/jsts.js'); | |
var geometryFactory = new jsts.geom.GeometryFactory(); | |
var coordinate = new jsts.geom.Coordinate(1,2); | |
var point = geometryFactory.createPoint(coordinate); |
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
--- style.xml.orig 2012-05-31 15:39:50.080704580 +0200 | |
+++ style.xml 2012-05-31 15:40:36.856701370 +0200 | |
@@ -1,5 +1,5 @@ | |
<?xml version="1.0" encoding="utf-8"?> | |
-<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over" bgcolor="rgb(140,182,211)"> | |
+<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over" bgcolor="rgb(241,238,232)"> | |
<Style name="line pattern style 110"> | |
<Rule name="rule 589"> | |
<Filter>(not (([tunnel]='true')) and not (([tunnel]='yes')))</Filter> |
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
import csv | |
from jinja2 import Template,FileSystemLoader,Environment | |
loader = FileSystemLoader('templates') | |
env = Environment(loader=FileSystemLoader('templates')) | |
tmp=[] | |
hostgroups=set() | |
hosts = csv.reader(open('hosts.csv'), delimiter=',', quotechar='"') | |
for h in hosts: |
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
/* | |
NOTE: replace YourListView/YourController with the actual names of the | |
controller/listview in your app. | |
*/ | |
YourController.content.add(yournewobject); | |
this.invokeLater(function(){ | |
YourListView.computeLayout(); | |
YourListView.scrollDownPage(); |
OlderNewer