A Pen by Carlos Antonio on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*By Carlos F. Antonio | |
Hello World! in C language | |
02/18/2014*/ | |
#include <stdio.h> | |
int main (void) | |
{ | |
Printf("What's your name: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cs50.h> | |
#include <stdio.h> | |
int main (void) | |
{ | |
printf("Input a integer: "); | |
int i = GetInt(); | |
switch (i) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*CS50 pset01 - mario.c | |
Carlos F. Antonio | |
fulvio.ac@gmail.com | |
SDQ Dominican Republic | |
02/23/2014 */ | |
//Libraries | |
#include <cs50.h> | |
#include <stdio.h> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"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" |
A Pen by Carlos Antonio on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var you_drink; | |
var reverse = function(s) { | |
return s.split("").reverse().join(""); | |
}; | |
var barista = { | |
str1: "ion", | |
str2: reverse("rcne"), | |
str3: "ypt", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
OlderNewer