Skip to content

Instantly share code, notes, and snippets.

View eariassoto's full-sized avatar

Emmanuel Arias Soto eariassoto

View GitHub Profile
XRES=1366
YRES=768
RAM=8G
qemu-system-x86_64 \
-drive format=raw,file=chromeos_15437.42.0_reven_recovery_stable-channel_mp-v2.bin \
-enable-kvm \
-m $RAM \
-machine q35,accel=kvm,dump-guest-core=off,vmport=off \
-cpu host \
-smp cores=8 \
{
"accessors" : [
{
"bufferView" : 0,
"byteOffset" : 0,
"componentType" : 5123,
"count" : 18,
"max" : [
35
],
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) {
ListNode *newList = NULL, *newTail = NULL;
while(l1 != NULL && l2 != NULL)
{
ListNode *newNext = (l1->val < l2->val) ? l1 : l2;
if(newList == NULL)
{
newList = newNext;
newTail = newNext;
[2] ciclo: 19, [1]: DADDI R1,R0,1
[1] ciclo: 19, [1]: DADDI R1,R0,1
[0] ciclo: 19, [1]: SW R0 260(R0) Pos: 260 Res: 3
[0] ciclo: 20, [1]: SW R0 128(R0) Pos: 128 Res: 3
[2] ciclo: 20, [1]: LW R2 132(R0) Pos: 132 Res: 2
[1] ciclo: 20, [1]: LW R2 128(R0) Pos: 128 Res: 2
[1] ciclo: 24, [1]: SW R1 128(R0) Pos: 128 Res: 2
[1] ciclo: 25, [1]: BEQZ R1,-4
[2] ciclo: 26, [1]: SW R1 132(R0) Pos: 132 Res: 4
[2] ciclo: 27, [1]: BEQZ R1,-4
@eariassoto
eariassoto / LW-SW.cs
Created July 2, 2016 05:22
load y store
/// <summary>
///
/// </summary>
/// <param name="posMem"></param>
/// <param name="regFuente"></param>
/// <returns></returns>
public bool StoreWord(int posMem, int regFuente)
{
/// resultado final, sirve para
/// 1. bajar el PC
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
ECCI_Test.ECCI_HolaMundoPortClient client = new ECCI_Test.ECCI_HolaMundoPortClient();
string nombreUsuario = "emmanuel";
/*
var Nodo = require("./main.js");
*/
var method = Nodo.prototype;
function Nodo(nombreGramatica, esTerminal, hileraTerminal) {
this.nombreGramatica = nombreGramatica;
this.esTerminal = esTerminal;
if(this.esTerminal)
/*
Codigo basado en
http://elcajondeardu.blogspot.com/2014/03/tutorial-sensor-ultrasonidos-hc-sr04.html
*/
long distancia;
long tiempo;
void setup(){
Serial.begin(9600);
pinMode(9, OUTPUT);
pinMode(8, INPUT);
void execute_command(char command, FILE *input){
char c;
long pos;
switch(command) {
case '>':
++p;
if(!*p)
++last_p;
@eariassoto
eariassoto / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;