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 / 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>
@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 / 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 November 15, 2018 18:51
Starting using Javascript and Node.js

Requirements

Check if node is installed

$ node --version
@abranhe
abranhe / AlertExample.js
Created December 28, 2018 20:41
React Native Alert
import React from 'react'
import { Alert, Text, TouchableOpacity, StyleSheet } from 'react-native'
const AlertExample = () => {
const showAlert = () =>{
Alert.alert(
'You need to...'
)
}
return (
@abranhe
abranhe / readme.md
Last active January 26, 2019 07:04
Running GUI applications using Docker for Mac

Running GUI applications using Docker for Mac

This is a short guide explaining how to run GUI applications from within Docker on Mac. This uses XQuartz to enable to set the DISPLAY variable within the container.

Install XQuartz

You can install XQuartz using homebrew with brew cask install xquartz or directly from the website here. At the time of writing, I had 2.7.11 installed on my machine with OSX El Capitan. After installing XQuartz restart your machine.

Install Docker for Mac

@abranhe
abranhe / readme.md
Created January 26, 2019 07:30
How to delete all docker containers and Images
@abranhe
abranhe / SyntaxHighlighter.js
Created February 2, 2019 17:43
React Native Syntax Highlighter
import React, { Component } from 'react';
import { StyleSheet, Text, View, TextInput } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import SyntaxHighlighter from 'react-native-syntax-highlighter'; // 2.0.0
import { tomorrow } from 'react-syntax-highlighter/styles/prism' // 7.0.1
const code = `const example = require('example');
console.log('Some example ' + example());
`;
@abranhe
abranhe / readme.md
Last active May 14, 2020 06:01
Java Executables

Convert Java Executable to Linux Executable

Introduction

Java program is universal and applicable to most operating systems, but if someone intends to create a native executable binary file for certain operation system, is that possible?

The answer is yes. Here is the instruction to create an executable program for Linux with .run as its extension name.

Create a text file use your favorite text editor (In this case it is gedit) and type these code below:

#!/bin/bash
# ______ ______
# / \ / \
# /$$$$$$ |/$$$$$$ |
# $$ | $$ |$$ \__$$/
# $$ | $$ |$$ \
# $$ | $$ | $$$$$$ |
# $$ \__$$ |/ \__$$ |
# $$ $$/ $$ $$/
# $$$$$$/ $$$$$$/ https://p.abranhe.com/os