Skip to content

Instantly share code, notes, and snippets.

View lamalex's full-sized avatar

Alex Launi lamalex

View GitHub Profile
Meteor.Router.add ({
'/': 'relicsList',
'/page/:_id': {
to: 'relicPage',
and: function (id) { Session.set ('currentRelicId', id); }
},
'/forum/list': 'forumList',
'/forum/:name': {
to: 'threadList',
and: function (name) {
var fbloading = false;
Template.newEventDialog.helpers({
'fbloading': function() {
return fbloading;
}
});
Template.newEventDialog.events({
'blur input[name=facebook-url]': function(e) {
e.preventDefault();
<div class="event-display" style="display:inline-block; float:right;">
{{#if fbloading}}
{{> spinner}}
{{/if}}
</div>
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
takePicture: function() {
var options = {
quality: 50,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: 1,
encodingType: 1
};
navigator.camera.getPicture(
function(imageData) {
navigator.notification.alert(imageData, null, "great news!", '\'Aight');
✓ font-awesome
tag: https://github.com/nate-strauser/meteor-font-awesome.git#v0.1.6
/usr/local/share/npm/lib/node_modules/meteorite/lib/sources/git.js:151
hrow "There was a problem checking out " + self.checkoutType + ": " + (self.co
^
There was a problem checking out tag: v0.1.6
var dataRows = data.$('tr', '#ctl00_PageContent_usageGridView').filter(function() {
return this.hasClass('gridRow') || this.hasClass('gridRowAlternating');
});
dataRows.each(function(i, elem) {
console.log(elem.html());
});