Skip to content

Instantly share code, notes, and snippets.

View kordero's full-sized avatar

Lucas Crisman kordero

View GitHub Profile
@kordero
kordero / memacts_io_cache.md
Created December 8, 2015 23:40
MEMFacts I/O cache

MEMFacts Input/Output cache

Input

Input cache helps reducing page speed loads since it avoids to have visitors waiting for the server to do necesary requests to data server or file reads in order to get all the data it needs to render the output. This behavior consist in saving every needed input in a temporary memory in order to be reused if they are needed before a predefined amount of time has passed.

API Requests

st=>start: Dataset fetch call
@kordero
kordero / memfacts_qc.md
Last active October 30, 2015 06:28
MEMFacts.org quality control

MEMFacts.org quality control

Changes traffic through branches

There is a direct relation between the three MEMFacts main instances (or environments) and 3 of the branches that we are using in official repository:

@kordero
kordero / gist:366c34d416055adfb3ce
Created September 25, 2015 05:31 — forked from trcarden/gist:3295935
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
ALTER TABLE `projects`
ADD COLUMN `slack_enabled` TINYINT(1) NOT NULL DEFAULT 0 AFTER `hipchat_enabled`,
ADD COLUMN `slack_token` VARCHAR(40) NULL DEFAULT NULL AFTER `slack_enabled`,
ADD COLUMN `slack_room` VARCHAR(40) NULL AFTER `slack_token`;
ALTER TABLE `projects`
DROP COLUMN `hipchat_enabled`,
DROP COLUMN `hipchat_color`,
DROP COLUMN `hipchat_room`,
DROP COLUMN `hipchat_notification_token`;
diff --git a/css/names.css b/css/names.css
new file mode 100644
index 0000000..f32cec8
--- /dev/null
+++ b/css/names.css
@@ -0,0 +1,311 @@
+@media screen and (min-width: 771px) {
+ body > #container {
+ width: 715px;
+ }
var names = {
options: {
unsupported_warning: false
},
MAX_TEXT_HEIGHT: 30,
MARGIN: [3, 3],
PADDING: [16, 8],//[x, y]
NUM_PLACE_NAMES: 25,
@kordero
kordero / A-Pen-by-Lucas-Crisman.markdown
Created November 4, 2013 23:54
A Pen by Lucas Crisman.