Skip to content

Instantly share code, notes, and snippets.

View nemesiscodex's full-sized avatar
🏠
Working from home

Julio Daniel Reyes nemesiscodex

🏠
Working from home
View GitHub Profile
@nemesiscodex
nemesiscodex / java-coding-styles.xml
Last active June 17, 2025 11:44
Personal coding styles
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="13">
<profile kind="CodeFormatterProfile" name="CustomCheckstyleProfile" version="13">
<!-- General Settings -->
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> <!-- FileTabCharacter -->
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="120"/> <!-- LineLength max=120 -->
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/> <!-- NewlineAtEndOfFile -->
@nemesiscodex
nemesiscodex / monadtest.py
Created April 9, 2018 13:32
Python monad test
class Maybe():
def __init__(self, value):
self.value = value
def empty():
return Maybe(None)
def of(value):
@nemesiscodex
nemesiscodex / Dockerfile
Created December 8, 2016 23:46
Fedora 23 Dockerfile and docker-compose to run sugar-build
FROM fedora:23
RUN mkdir /code/
# Install sugar-build dependencies
RUN dnf install -y \
python \
python-devel \
python-virtualenv \
python-gobject \
libXrandr \
tar \
@nemesiscodex
nemesiscodex / docker-compose.yml
Created February 25, 2016 00:22
tensorflow with docker-compose
tensorflow:
build: ./tensorflow/examples/udacity
ports:
- "8888:8888"
@nemesiscodex
nemesiscodex / generateDungeonMap.js
Last active January 15, 2016 22:10
Dungeon map algorithm
/**
* The MIT License (MIT)
* Copyright (c) 2016 Julio Reyes <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
@nemesiscodex
nemesiscodex / cake.svg
Last active January 5, 2016 02:09
Recipes svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nemesiscodex
nemesiscodex / semi-circle-b.svg
Created September 1, 2015 04:33
Simmon game semi-circles
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nemesiscodex
nemesiscodex / img-to-svg.js
Last active August 29, 2015 14:15
Replaces all <img class="svg"> with inline svg
/*
* Replace all SVG images with inline SVG
* @Author: Drew Baker @ Funkhaus
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');