Skip to content

Instantly share code, notes, and snippets.

View fulvi0's full-sized avatar
🏠
Working...

Carlos Antonio fulvi0

🏠
Working...
View GitHub Profile
@fulvi0
fulvi0 / helloworld.c
Last active May 23, 2016 16:00
My first program with C
/*By Carlos F. Antonio
Hello World! in C language
02/18/2014*/
#include <stdio.h>
int main (void)
{
Printf("What's your name: ");
@fulvi0
fulvi0 / Switch.c
Created February 19, 2014 02:18
Switches are another way of implementing forks in logic. Instead of repeated "else if" blocks, you can handle cases
#include <cs50.h>
#include <stdio.h>
int main (void)
{
printf("Input a integer: ");
int i = GetInt();
switch (i)
{
@fulvi0
fulvi0 / mario.c
Created March 2, 2014 20:52
CS50 - pset1 - mario.c
/*CS50 pset01 - mario.c
Carlos F. Antonio
fulvio.ac@gmail.com
SDQ Dominican Republic
02/23/2014 */
//Libraries
#include <cs50.h>
#include <stdio.h>
@fulvi0
fulvi0 / Random Quote Machine.markdown
Last active May 14, 2016 01:52
Random Quote Machine
@fulvi0
fulvi0 / fr_quotes.json
Last active May 14, 2016 01:21
French Quotes for Build a random generator quotes machine
[{
"id": 1,
"title": "Samuel Johnson said",
"description": "Celui qui fait de lui-même une bête se débarrasse des douleurs d'être un homme.",
"pubDate": "Sun, 26 Jul 2015 11:00:00 +0000"
}, {
"id": 2,
"title": "Dr House said",
"description": "Les gens prient pour que Dieu ne les écrasent pas.",
"pubDate": "Tue, 21 Jul 2015 12:00:00 +0000"
@fulvi0
fulvi0 / tmux-cheatsheet.markdown
Created May 16, 2016 04:51 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@fulvi0
fulvi0 / Show the Local Weather.markdown
Last active May 23, 2016 13:02
Show the Local Weather
@fulvi0
fulvi0 / freeCoffes.js
Last active May 23, 2016 16:52
Get a free coffee
var you_drink;
var reverse = function(s) {
return s.split("").reverse().join("");
};
var barista = {
str1: "ion",
str2: reverse("rcne"),
str3: "ypt",
@fulvi0
fulvi0 / reverse_string.js
Created May 23, 2016 18:40
Reverse the provided string. You may need to turn the string into an array before you can reverse it. Your result must be a string.
// Free Code Camp
function reverseString(str) {
var strReverse = str.split('').reverse().join('');
return strReverse;
}
console.log(reverseString("hello")); // should become "olleh".
console.log(reverseString("Howdy")); // should become "ydwoH".
console.log(reverseString("Greetings from Earth")); // should return "htraE morf sgniteerG"
function slasher(arr, howMany) {
arr = arr.slice(howMany);
return arr;
}
console.log(slasher([1, 2, 3], 2));
console.log(slasher([1, 2, 3], 0));
console.log(slasher([1, 2, 3], 9));
console.log(slasher([1, 2, 3], 4));
console.log(slasher(["burgers", "fries", "shake"], 1));