Skip to content

Instantly share code, notes, and snippets.

View devniel's full-sized avatar
🐲
hacking

Daniel Flores devniel

🐲
hacking
View GitHub Profile
@devniel
devniel / gist:1502752
Created December 20, 2011 18:55
Para estirar el chat del facebook
javascript:
q=555;
n=q+"px";
function _$(el){return document.querySelectorAll(el)};
a=_$('.fbNubFlyout');
b=_$(".fbDockChatTabFlyout");
for(var i=0;i<a.length;i++)a[i].style.maxHeight=(q-5+100)+"px";
for(var i=0;i<b.length;i++)b[i].style.height=(q-5+100)+"px";
c=_$('.fbNubFlyoutBody');
for(var i=0;i<c.length;i++)c[i].style.height=q+"px";
@devniel
devniel / tiro.asm
Created December 20, 2011 21:13
Trabajo final de ASM.
TAMTOT EQU 8192
.model small
.386p
.stack 500h
.data
modovideo db ?
vram dw ?
video_buffer dd 0a000h
@devniel
devniel / index.html
Created January 1, 2012 01:28
Analizador Sintáctico
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Analizador Sintáctico | While</title>
<style type="text/css">
body {
width:400px;
margin:0 auto;
margin-top:100px;
<!DOCTYPE html>
<html>
<head>
<script>
window.onload = function(){
var canvas = document.querySelector("canvas");
var ctx = canvas.getContext("2d");
var x,y,n;
var rec = new Array();
@devniel
devniel / gist:1609474
Created January 14, 2012 00:07
INSERTION-SORT
/*
INSERTION-SORT(A)
for j=2 to A.length
key = A[j]
// Insert A[j] into the sorted sequence A[1..j-1]
i=j-1
while i>0 and A[i] > key
A[i+1] = A[i]
i = i-1
A[i+1] = key
@devniel
devniel / gist:2019523
Created March 12, 2012 03:24
AutoTextarea
function autoTextArea(element,topElement){
var sw = 0;
var inc = 20;
inv_box = $('<div class="invisible_box">').css({
height : 'auto',
overflow : 'auto',
position : 'absolute',
'line-height' : 'normal',
top : '0px',
@devniel
devniel / gist:2387356
Created April 14, 2012 19:36
Vertical Hello World
set i, 0
:loop
set a, [hello_world + i]
ife a, 0
set pc, end
bor a, 0xE100
set push,i
mul i,0x0020
set [0x8000 + i], a
set i,pop
@devniel
devniel / gist:2396183
Created April 16, 2012 03:05
picdasm test
;Author : Daniel Flores(dnielf/devniel)
set [0x8202],0x8000
set [0x8203],0x0000
jsr draw_sprite
:end
set pc,end
javascript: q = 555;
n = q + "px";
function _$(el) {
return document.querySelectorAll(el)
};
a = _$('.fbNubFlyout');
b = _$(".fbDockChatTabFlyout");
for (var i = 0; i < a.length; i++) a[i].style.maxHeight = (q - 5 + 100) + "px";
for (var i = 0; i < b.length; i++) b[i].style.height = (q - 5 + 100) + "px";
@devniel
devniel / app.js
Created July 28, 2012 23:30
jRecorder's acceptfile script for Node.js
/**
* Module dependencies.
*/
var express = require('express'),
url = require("url"),
fs = require("fs"),
routes = require('./routes');