Skip to content

Instantly share code, notes, and snippets.

View ZuraGuerra's full-sized avatar
🐟
🌏🌎🌍

Zura Guerra ZuraGuerra

🐟
🌏🌎🌍
View GitHub Profile
@ZuraGuerra
ZuraGuerra / elfos.rb
Last active August 29, 2015 14:16 — forked from vic/elfos.rb
module Aliveness
attr_accessor :alive
def initialize
@alive = true
end
end
module DieAbility
include Aliveness
@ZuraGuerra
ZuraGuerra / roshambo.js
Created March 31, 2015 08:23
roshambo.js
var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
if (computerChoice < 0.34) {
computerChoice = "rock";
} else if(computerChoice <= 0.67) {
computerChoice = "paper";
} else {
computerChoice = "scissors";
} console.log("Computer: " + computerChoice);
@ZuraGuerra
ZuraGuerra / phraseFinder.js
Created April 3, 2015 07:55
Find phrases in text.
var text = "banana Zura es Azur banana Zura es Azur Zura es Azur banana banana banana banana Zura es Azur";
var phrase = "Zura es Azur";
var textLow = text.toLowerCase();
var phraseLow = phrase.toLowerCase();
var hits = 0;
for (var i = 0; i < textLow.length; i++) {
if (textLow[i] === phraseLow.charAt(0)) {
var phraseCheck = textLow[i];
for (var l = 1; l < phraseLow.length; l++) {
{
"coordinates": null,
"created_at": "Thu Oct 21 16:02:46 +0000 2010",
"favorited": false,
"truncated": false,
"id_str": "28039652140",
"entities": {
"urls": [
{
"expanded_url": null,
@ZuraGuerra
ZuraGuerra / smart-underline.css
Created June 15, 2015 21:26
Smart Underline
a:hover {
text-decoration: none;
color: $main-color;
text-shadow: 1px 0 0 #fff, -1px 0 0 #fff;
background-image: linear-gradient(to right, currentColor 0%, currentColor 100%);
background-repeat: repeat-x;
background-position: 0 95%;
-webkit-background-size: 100% 1px;
background-size: 100% 1px;
@ZuraGuerra
ZuraGuerra / log.txt
Created July 22, 2015 18:48
blanchi error log
(env)/Users/zuraguerra/blanchi-mellow/blanchiweb ─> (feature/new-landing) ><}}*> python manage.py runserver 3000
Performing system checks...
System check identified no issues (0 silenced).
Unhandled exception in thread started by <function wrapper at 0x1103db848>
Traceback (most recent call last):
File "/Users/zuraguerra/blanchi-mellow/blanchiweb/env/lib/python2.7/site-packages/django/utils/autoreload.py", line 223, in wrapper
fn(*args, **kwargs)
File "/Users/zuraguerra/blanchi-mellow/blanchiweb/env/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 112, in inner_run
self.check_migrations()
@ZuraGuerra
ZuraGuerra / gist:5980ad7b070c79f91fa6
Created September 2, 2015 22:18
Relationships models
CAUSE
belongs_to :user, Dennis.User
has_many :challenges, Dennis.Challenge
CHALLENGE
belongs_to :user, Dennis.User
belongs_to :cause, Dennis.Cause
*DB en general
*SQL
*Estructuras MVC, más claro y más a fondo (estaba checando Rails con eso)
*Basics de Computer Science (como lo del binario o la arquitectura Von Neumann)
*Cuál es el workflow usual para sacar y mantener un sistema?
*Historia de Computer Science?
*Términos comunes (como hash) {digo, esto es googleable cada que resulte necesario, pero ¿hay algún diccionario o similar del que sepas (algo más sucinto que Wikipedia)?
*Fundamentos de estructuras de datos
*Me dio curiosidad: ¿cómo se distribuye un sistema en varios servidores?
*¿Qué tener en cuenta de seguridad al desarrollar? (¿Sabes de algún paper/libro que hable de eso en términos generales?)
@ZuraGuerra
ZuraGuerra / gist:1aa930a1450f73826378
Last active September 10, 2015 03:04
Ansible elixir error log
PLAY [app-servers] ************************************************************
GATHERING FACTS ***************************************************************
<104.236.85.42> ESTABLISH CONNECTION FOR USER: root
<104.236.85.42> REMOTE_MODULE setup
<104.236.85.42> EXEC ssh -C -tt -v -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 104.236.85.42 /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1441852806.17-35443393663971 && echo $HOME/.ansible/tmp/ansible-tmp-1441852806.17-35443393663971'
<104.236.85.42> PUT /var/folders/05/hf4hn6yn0_q37lrzbf1spp4r0000gr/T/tmpmtx8tG TO /root/.ansible/tmp/ansible-tmp-1441852806.17-35443393663971/setup
<104.236.85.42> EXEC ssh -C -tt -v -o ForwardAgent=yes -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10
@ZuraGuerra
ZuraGuerra / cv-new.html
Created October 5, 2015 17:12
iñaki-cv
<!DOCTYPE html>
<html lang="es">
<head>
<title>Curriculum Vitae</title>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Oswald:400,300">
<style>
.header {
font-family: 'Oswald', serif;
font-size: 50px;
}