Skip to content

Instantly share code, notes, and snippets.

View neodevelop's full-sized avatar
🏠
Working from home

José Juan Reyes Zuñiga neodevelop

🏠
Working from home
View GitHub Profile
@neodevelop
neodevelop / Haskell_lecture_2.adoc
Last active June 17, 2018 23:07
Haskell Lecture - Session 2

Haskell Class

chapter 3 - Types and classes

A type is a collection of related values

For example type Bool

@neodevelop
neodevelop / Haskell_lecture_1.adoc
Last active June 17, 2018 20:48
Haskell Lecture 1

Haskell

Functions

Is a mapping that takes one or more arguments and produces a single result.

  • Is defined using an equation with a name for the function

  • Each argument has a name

  • The body specifies how would be calculated in terms of the arguments

@neodevelop
neodevelop / guess_my_number.c
Created March 9, 2018 23:07
Guess my number in C
#include <stdio.h>
void guess(int n, int low, int upper){
int guess_number = (upper + low) / 2;
if(guess_number < n){
printf("Tu número no es %d\n", guess_number);
guess(n, guess_number, upper);
}
if(guess_number > n){
printf("Tu número no es %d\n", guess_number);
@neodevelop
neodevelop / .zshrc
Last active October 17, 2017 08:53
My oh-my-zsh
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
ZSH_THEME="jj-juicy"
# migrating from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
# Aliases
alias g='git'
#compdef g=git
alias gst='git status'
#compdef _git gst=git-status
alias gd='git diff'
#compdef _git gd=git-diff
alias gdc='git diff --cached'
@neodevelop
neodevelop / setenv.sh
Created June 12, 2017 16:40 — forked from terrancesnyder/setenv.sh
./setenv.sh - example setenv.sh with defaults set for minimal time spent in garbage collection
#! /bin/sh
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
@neodevelop
neodevelop / multi-git.md
Created May 10, 2017 23:29 — forked from rosswd/multi-git-win.md
Setting up a Github and Bitbucket account on the same computer.

Setting up github and bitbucket on the same computer

Github will be the main account and bitbucket the secondary.

Create SSH Keys

ssh-keygen -t rsa -C "github email"

Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.

@neodevelop
neodevelop / Writing Tools Writeup.markdown
Created December 8, 2016 05:43 — forked from mojavelinux/Writing Tools Writeup.markdown
How To Write A Technical Book (One Man's Modest Suggestions)
qsort [] = []
qsort(x:xs) = qsort smaller ++ [x] ++ qsort larger
where
smaller = [ a | a <- xs, a <= x]
larger = [ b | b <- xs, b > x]
defmodule Sieve.Eratosthenes do
def primes_to(n) do
sieve([], candidates(n))
end
defp sieve(primes, []) do
primes
end