Skip to content

Instantly share code, notes, and snippets.

@xerosanyam
xerosanyam / Annotateit.js
Last active August 29, 2015 14:10 — forked from eeeschwartz/main.js
Greasemonkey code for Annotateit.org
// ==UserScript==
// @name annotate
// @namespace annotate
// @include *
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @require http://assets.annotateit.org/annotator/v1.2.9/annotator-full.min.js
// @resource UI_CSS http://assets.annotateit.org/annotator/v1.2.9/annotator.min.css
// @grant GM_addStyle
// @grant GM_getResourceText
// @run-at document-start
@xerosanyam
xerosanyam / README.md
Created March 8, 2016 15:37 — forked from estebistec/README.md
This minimal setup allows you to run nginx using the current folder as the doc-root.NOTE: python's simplehttpserver may be good enough for you. This is just a nice simple nginx setup.
  1. Get all of these files into the target folder
  2. Run the following commands:
chmod +x *.sh
./nginx-start.sh
@xerosanyam
xerosanyam / giphy.js
Created May 18, 2017 05:01 — forked from nealrs/giphy.js
use the giphy api to search for & add an animated gif to a webpage.
// on page load, search for & display a random gif matching your search term using the Giphy API.
// usage:
// include giphy.js in your <head>
// set q to your search term (e.g. "brunch")
// add <span id = "giphyme"></span> wherever you want to display the image. -- FYI, it will be centered.
// big ups to the Giphy crew (giphy.com)
// 2014 - Neal Shyam [@nealrs | nealshyam.com]
document.addEventListener('DOMContentLoaded', function () {
q = "finger guns"; // search query
@xerosanyam
xerosanyam / Statistics.js
Created July 22, 2019 12:45 — forked from Sirfrummel/Statistics.js
Loading Segment.io analytics.js open source version async
// Create a dummy analytics object until real loaded
window.analytics || (window.analytics = []);
window.analytics.methods = ['identify', 'track', 'trackLink', 'trackForm', 'trackClick', 'trackSubmit', 'page', 'pageview', 'ab', 'alias', 'ready', 'group', 'on', 'once', 'off'];
window.analytics.factory = function(method) {
return function() {
var args = Array.prototype.slice.call(arguments);
args.unshift(method);
window.analytics.push(args);
return window.analytics;
};
@xerosanyam
xerosanyam / custom_game_engines_small_study.md
Created April 25, 2020 13:33 — forked from raysan5/custom_game_engines_small_study.md
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) becaus