Skip to content

Instantly share code, notes, and snippets.

View ciwolsey's full-sized avatar

Carl Wolsey ciwolsey

  • Yorkshire, England
  • 04:56 (UTC +01:00)
View GitHub Profile
Meteor.methods({
createNewService: function(host, port){
try{
var result = HostLogs.insert({ip: host, port: port});
}catch(e){
console.log(e);
}
return result;
}
});
Meteor.call('createNewService', host, port, function(err, res){
$('#add-new-service-modal .form').removeClass('loading');
$('#add-new-service-modal').modal('hide');
console.log(res);
});
Schemas = {};
Schemas.HostLogs = new SimpleSchema({
ip: {
type: String,
label: "IP",
custom: function(){
if(this.isFromTrustedCode){
// trusted, no need for regex validation
} else {
Meteor.publish("quotas", function() {
return Meteor.users.find({ user_id: this.userId }, {fields: { quota: 1, used: 1 }});
});
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,
})
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
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
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'
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
server {
listen 443 ssl;
root /home/ciwolsey/projects/www/;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;