Skip to content

Instantly share code, notes, and snippets.

View sebs's full-sized avatar
🌈
@127.0.0.1

Sebastian Schürmann sebs

🌈
@127.0.0.1
View GitHub Profile
@sebs
sebs / build.js
Created August 28, 2012 20:04
strange path issue with component
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(p, parent, orig){
var path = require.resolve(p)
@sebs
sebs / gist:3801420
Created September 28, 2012 18:34
validate a JSON with a JSON-Schema sent via POST
exports.validate = function(req, res){
// name of the schema to load schema from filesyste,
services.getSchema(req.params.name, function(err, schema) {
// validate me and in case has a length
amanda.validate(req.body, schema, function(error) {
if (error.length > 0) {
res.send(500, error);
return;
}
res.send(true);
@sebs
sebs / bower.md
Last active December 12, 2015 09:09
Bower Wishlist

Bower Wishlist

  • Jquery inkl. build
  • md5
  • command pattern
  • maps
  • openstreetmaps
  • geolocation api
  • markdown parser and writer
  • create.js
@sebs
sebs / CMS Storage Flow
Created April 25, 2013 18:12
This is how a CMS should store documents and communicate with the client, through a connection.
title Messages
client-->server: save doc
server->client: uuid
client-->server: subscribe to uuid
server-->message queue: vaildation msg
opt if validation ok
server-->message queue: workflow msg
end
opt if workfow and validation ok
@sebs
sebs / weapon
Last active January 1, 2016 04:09
PA JSON Testq
{
"ammo_type": "AMMO_Projectile",
"base_spec": "/pa/ammo/base_shell/base_shell.json",
"damage": 33,
"splash_damage": 0,
"splash_radius": 0,
"lifetime": 2,
"initial_velocity": 150,
"max_velocity": 150
}
@sebs
sebs / units.md
Last active August 29, 2015 13:56
pa json docs

Unit Blueprints

Alpha Disclaimer: This information is still being compiled, but is currently based on PA Build 50256 and may change

See PA Modding Changes for any changes that may have been made after this build.

Units in PA are defined in .json files. Each unit has it's own folder, which is located in /PA/media/pa/units//.

All available units are listed in the file PA\media\pa\units\unit_list.json. The unit must be in this list for it to be present in-game.

@sebs
sebs / ideas.md
Last active August 29, 2015 13:57
Ideas for Web Components

CMS

  • Editor
  • md Editor
  • Datagrid
  • Clock
  • tree
  • pagination
  • Calendar
  • audioplayer
@sebs
sebs / bower.json
Last active August 29, 2015 13:59
A x-tag component to parse Markdown to html in a page.
{
"name": "xtags",
"version": "0.0.0",
"authors": [
"Sebastian Schürmann <[email protected]>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
@sebs
sebs / ping
Created April 30, 2014 10:16
o2 cant do
64 bytes from 173.194.113.152: icmp_seq=0 ttl=56 time=14932.596 ms
Request timeout for icmp_seq 15
Request timeout for icmp_seq 16
Request timeout for icmp_seq 17
Request timeout for icmp_seq 18
64 bytes from 173.194.113.152: icmp_seq=1 ttl=56 time=18317.390 ms
Request timeout for icmp_seq 20
64 bytes from 173.194.113.152: icmp_seq=2 ttl=56 time=19497.330 ms
Request timeout for icmp_seq 22
Request timeout for icmp_seq 23