Skip to content

Instantly share code, notes, and snippets.

View abranhe's full-sized avatar
🐂
Coding Furiously

Abraham abranhe

🐂
Coding Furiously
View GitHub Profile
@abranhe
abranhe / readme.md
Last active November 15, 2018 18:51
Starting using Javascript and Node.js

Requirements

Check if node is installed

$ node --version
@abranhe
abranhe / sketch-never-ending.md
Last active November 11, 2018 16:26 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@abranhe
abranhe / readme.md
Last active January 26, 2019 06:59
Which Operating System are you using in C/C++?

Which Operating System are you using in C/C++?

I have created a module for this.

Installation

$ clib install abranhe/os.c
@abranhe
abranhe / pom.xml
Last active October 10, 2018 19:43
Starter pom.xml template for my projects
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
#include <string>
#include "account.h"
using namespace std;
Account::Account(void):balance(0)
{
}
vector<string> Account::report()
{
@abranhe
abranhe / reverse_array.cpp
Created September 28, 2018 03:05
Reverse items in array
//
// Reverse an array
// Carlos Abraham (abranhe.com)
// https://stackoverflow.com/questions/19712903/reverse-contents-in-array
//
#include <iostream>
#include <algorithm>
using namespace std;
int main()
@abranhe
abranhe / simple_sort.cpp
Created September 27, 2018 19:46
Simple sort in C++
//
// Simple Sort
// Carlos Abraham He...
// github.com/abranhe
// https://repl.it/@abranhe/Simple-Sort
//
#include <iostream>
#include <vector>
#include <algorithm>
@abranhe
abranhe / auto.cpp
Last active September 26, 2018 03:23
Auto example in C++
// Author: Abraham (@abranhe)
// Run it: https://repl.it/@abranhe/AutoExample
// C++ 11 or later
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> v = {0,1 ,2 ,3 ,4};
@abranhe
abranhe / VariableSizedArrays.cpp
Last active September 26, 2018 02:52
Variable Sized Arrays Hackerrank
// See question: https://hackerrank-challenge-pdfs.s3.amazonaws.com/14507-variable-sized-arrays-English?AWSAccessKeyId=AKIAJ4WZFDFQTZRGO3QA&Expires=1537933597&Signature=hih3xrYn04RUlnsFKRVP1%2BFTgWA%3D&response-content-disposition=inline%3B%20filename%3Dvariable-sized-arrays-English.pdf&response-content-type=application%2Fpdf
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
@abranhe
abranhe / vectors.cpp
Last active September 25, 2018 22:23
Collections using vectors.
// Run it online
// https://repl.it/@abranhe/Pluralsight-1-4-vectors
//
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main() {