Skip to content

Instantly share code, notes, and snippets.

View marcel-valdez's full-sized avatar

Marcel Valdez marcel-valdez

View GitHub Profile
{"version":1,"notes":"My awesome keymap","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"handwired/dactyl_promicro","keymap":"handwired_dactyl_promicro_layout_6x6_mine.json","layout":"LAYOUT_6x6","layers":[["KC_ESC","KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","KC_0","KC_MINS","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_EQL","KC_BSLS","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","LT(1,KC_LGUI)","LT(2,KC_APP)","KC_GRV","KC_LBRC","KC_RBRC","KC_BSPC","KC_
{
"header": {
"Variant": "standard",
"Generator": "KIICONF 0.2",
"Base": "Blank",
"Date": "2015-09-12",
"KLL": "0.3c",
"Author": "HaaTa (Jacob Alexander) 2015",
"Version": "0.1",
"Name": "MDErgo1",
@marcel-valdez
marcel-valdez / wordpress_custom_css.php
Created December 18, 2012 04:03
Piece of code to add custom css to a specific wordpress post using custom fields.
<?php
$custom_css = get_post_custom_values('custom_css', $post->ID);
if ($custom_css != null && count($custom_css) > 0 ) {
echo '<link rel="stylesheet" type="text/css" media="all" href="'. $custom_css[0] .'" />';
}
?>
@marcel-valdez
marcel-valdez / nunit_tutorial.css
Created October 5, 2012 04:47
Styles for the NUnit tutorial
@import url('https://themes.googleusercontent.com/fonts/css?kit=na2xy4REgy2vjVAZtpZNc_yDN7cgeRfA_woaXUgMUYU');
ol {
margin: 0;
padding: 0
}
.c21 {
color: #66747b;
@marcel-valdez
marcel-valdez / Program.cs
Created October 5, 2012 01:53
Arris TM602A password of the day generator
/*
* Arris TM602A password of the day generator
*
* Author of Original JavaScript Version: Raul Pedro Fernandes Santos
* Author of this C# Code: Marcel Valdez Orozco
* Project homepage for JavaScript Version: http://www.borfast.com/projects/arrispwgen
*
* This software is distributed under the Simplified BSD License.
*
* Copyright 2012 Marcel Valdez Orozco. All rights reserved.
@marcel-valdez
marcel-valdez / Obsidian_Mod.xml
Created September 22, 2012 02:36
User defined language to add Syntax Highlighting and AutoComplete features in Notepad++ for WinRDBI relational algebra
<?xml version="1.0" encoding="Windows-1252" ?>
<!--
Notepad++ Custom Style
Style name: Obsidian Mod
Author: Joni Eskelinen
Date: 2009-04-06 (last changed 2009-07-30)
Languages: php, html, css, xml, javascript, python, sql, c, c++
assembly, bash, batch, lua at least for detail. Everything else more or less...
Info: Inspired by Oblivion theme for gedit.
@marcel-valdez
marcel-valdez / scale_pseudo_master.c
Created September 18, 2012 21:33
código maestro para paralelización del algoritmo de escalamiento de imagen
void scale_master(int* image_data_ptr, int height, int width, int proc_count, int new_height, int new_width) {
/* El proceso maestro no es un 'worker' */
int worker_count = proc_count - 1;
/* Se calcula el numero de renglones por 'worker' */
int rows_slice = height / worker_count;
/* Se calcular el remanente para el ultimo proceso */
int remainder = height % worker_count;
/* Se aloja memoria para la imagen 'trasladada' */
int* new_image_data_ptr;
/* Inicializar datos */
@marcel-valdez
marcel-valdez / ex_5_chap3_master.c
Created September 18, 2012 16:30
Pseudocodigo de ejercicio 5 de capitulo 3
void translacion_master(int* image_data_ptr, int height, int width, int proc_count, int deltaX) {
/* El proceso maestro no es un 'worker' */
int worker_count = proc_count - 1;
/* Se calcula el numero de renglones por 'worker' */
int rows_slice = height / worker_count;
/* Se calcular el remanente para el ultimo proceso */
int remainder = height % worker_count;
/* Se aloja memoria para la imagen 'trasladada' */
int* new_image_data_ptr;
/* Inicializar datos */
@marcel-valdez
marcel-valdez / AccountTest.cs
Created August 23, 2012 20:38
Pueba unitaria de la clase Bank
namespace Bank.UnitTest
{
using System;
using NUnit.Framework;
[TestFixture] // El atributo TestFixture identifica a esta clase como una clase de pruebas
public class AccountTest
{
[Test] // El atributo Test identifica a este método como una prueba unitaria
public void TransferFunds()
@marcel-valdez
marcel-valdez / Account.cs
Created August 23, 2012 20:20
Clase Account inicial del tutorial NUnit
namespace Bank
{
using System;
public class Account
{
public void Deposit(decimal amount)
{
this.Balance += amount;
}