This file contains hidden or 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
| Meteor.methods({ | |
| createNewService: function(host, port){ | |
| try{ | |
| var result = HostLogs.insert({ip: host, port: port}); | |
| }catch(e){ | |
| console.log(e); | |
| } | |
| return result; | |
| } | |
| }); |
This file contains hidden or 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
| Meteor.call('createNewService', host, port, function(err, res){ | |
| $('#add-new-service-modal .form').removeClass('loading'); | |
| $('#add-new-service-modal').modal('hide'); | |
| console.log(res); | |
| }); |
This file contains hidden or 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
| Schemas = {}; | |
| Schemas.HostLogs = new SimpleSchema({ | |
| ip: { | |
| type: String, | |
| label: "IP", | |
| custom: function(){ | |
| if(this.isFromTrustedCode){ | |
| // trusted, no need for regex validation | |
| } else { |
This file contains hidden or 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
| Meteor.publish("quotas", function() { | |
| return Meteor.users.find({ user_id: this.userId }, {fields: { quota: 1, used: 1 }}); | |
| }); |
This file contains hidden or 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
| minetest.register_node("ciwolsey:decowood", { | |
| tiles = {"tutorial_decowood.png"}, | |
| groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, | |
| on_construct = (pos){ | |
| print("hello") | |
| end, | |
| }) |
This file contains hidden or 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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| set t_Co=256 | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " let Vundle manage Vundle, required |
This file contains hidden or 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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " let Vundle manage Vundle, required |
This file contains hidden or 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
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " let Vundle manage Vundle, required | |
| Plugin 'gmarik/Vundle.vim' |
This file contains hidden or 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
| tern#command ['node', '/home/ciwolsey/.vim/bundle/tern_for_vim/autoload/../node_modules/tern/bin | |
| /tern', '--no-port-file'] | |
| Press ENTER or type command to continue |
This file contains hidden or 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
| server { | |
| listen 443 ssl; | |
| root /home/ciwolsey/projects/www/; | |
| index index.html index.htm; | |
| # Make site accessible from http://localhost/ | |
| server_name localhost; |