Umberto Nicoletti unicolet

View constructor_code.js
1 2 3 4 5 6 7 8 9 10
function assembleLayer(conf) {
var constructorr=window, path=conf.provider.split(".");
// get a reference to the constructor, by walking the provider path
for(var i=0,l=path.length;i<l;i++) { constructorr=constructorr[path[i]]; }
 
// following constructor code from: http://stackoverflow.com/a/1608546/887883
// now invoke it
function F() {
return constructorr.apply(this, conf.args);
View cfg_based.js
1 2 3 4 5
var layers=[
{provider:'OpenLayers.Layer.Bing',args:[{name: "Road",key: "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf",type: "Road"}]},
{provider:'OpenLayers.Layer.Bing',args:[{name: "Hybrid",key: "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf",type: "AerialWithLabels"}]},
{provider:'OpenLayers.Layer.Bing',args:[{name: "Aerial",key: "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf",type: "Aerial"}]}
];
View bing.js
1 2 3 4 5 6 7 8 9 10
var road = new OpenLayers.Layer.Bing({
name: "Road",
key: apiKey,
type: "Road"
});
var hybrid = new OpenLayers.Layer.Bing({
name: "Hybrid",
key: apiKey,
type: "AerialWithLabels"
});
View collectd2snmp.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python -u
import snmp_passpersist as snmp
from collectd_unixsock import *
 
def update():
c = Collectd()
list = c.listval()
for val in list:
stamp, identifier = val.split()
values = c.getval(identifier)
View gist:7326456
1 2 3
$.get('http://162.13.113.151/geoserver/wfs?service=wfs&version=2.0.0&request=GetPropertyValue&outputFormat=application/json&typeNames=topp:states&valueReference=SUB_REGION',function(data) {
$(data).find('SUB_REGION').contents().each(function(i,v){console.log(v);})
});
View state.js
1 2 3
this.invokeLater(function(){
Pony.getPath('mainPage.mainPane').append();
}, Pony.transitionSpeed*1000);
View views.js
1 2 3 4 5 6 7 8 9 10
// define the transition duration globally
Pony.transitionSpeed=0.5;
 
// [more code here] //
 
// Automatic transitions, courtesy of SC 1.10
transitionIn: SC.View.SLIDE_IN,
transitionInOptions: { direction: 'down', duration: Pony.transitionSpeed, delay: Pony.transitionSpeed },
 
transitionOut: SC.View.SLIDE_OUT,
View gist:6843034
1 2 3 4 5 6 7 8 9 10
.animated{-webkit-animation-fill-mode:both;-moz-animation-fill-mode:both;-ms-animation-fill-mode:both;-o-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:1s;-moz-animation-duration:1s;-ms-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s;}.animated.hinge{-webkit-animation-duration:1s;-moz-animation-duration:1s;-ms-animation-duration:1s;-o-animation-duration:1s;animation-duration:1s;}
 
@-webkit-keyframes bounce {
0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);}
40% {-webkit-transform: translateY(-30px);}
60% {-webkit-transform: translateY(-15px);}
}
 
@-moz-keyframes bounce {
0%, 20%, 50%, 80%, 100% {-moz-transform: translateY(0);}
View gist:6795467
1 2 3 4 5 6 7 8 9 10
Master.mainPage = SC.Page.design({
 
// The main pane is made visible on screen as soon as your app is loaded.
// Add childViews to this pane for views to display immediately on page
// load.
mainPane: SC.MainPane.design({
childViews: ['labelView'],
 
labelView: SC.ButtonView.design({
count: 1,
View gist:6175235
1
find frameworks/ -iname "*.js" -type f | grep tests | sed "s/frameworks\//{url:'sproutcore\//" | sed "s/\.js/\.html'},/"
Something went wrong with that request. Please try again.