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 / 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() {
@abranhe
abranhe / newPage.js
Created September 17, 2018 17:45
New page on react
var PageOne = React.createClass({
_handlePress() {
this.props.navigator.push({id: 2,});
},
render() {
return (
<View style={[styles.container, {backgroundColor: 'green'}]}>
</View>
)
@abranhe
abranhe / Main.java
Last active September 4, 2018 20:16
Fibonacci
import java.lang.Math;
public class Main {
public static double inverseSqrt5 = 1 / Math.sqrt(5);
public static double phi = (1 + Math.sqrt(5)) / 2;
public static int fibonacci(int n) {
return (int)Math.floor(Math.pow(phi, n) * inverseSqrt5 + 0.5);
}
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 147881e0f3e6c455
5 verbose publish [ '.' ]
6 info lifecycle [email protected]~prepublish: [email protected]
7 info lifecycle [email protected]~prepare: [email protected]
8 info lifecycle [email protected]~prepublishOnly: [email protected]
9 info lifecycle [email protected]~prepack: [email protected]
@abranhe
abranhe / abranhe.java
Last active July 24, 2018 04:30
Theme?
import com.abranhe.abranhe;
class Abranhe {
System.out.println("abranhe");
}