Skip to content

Instantly share code, notes, and snippets.

View Sleepful's full-sized avatar
🐢
boo 👻

Jose Vargas Sleepful

🐢
boo 👻
View GitHub Profile
//______________________CLASE____________________//
var urlOrden = '@Url.Action("getOrden", "Account")';
var avesOrden = $('#Orden'); // caches element from a @html.dropdownlist in the HTML
$('#Clase').change(function () {
onchangeClase($(this).val());
//if i place onchangeSuborden("") here it doesnt work well
});
/* Hello World program */
#include<stdio.h>
#include "structs.h"
main()
{
int a = 3;
printf("Hello World %d \n", a);
arqui* r;
@Sleepful
Sleepful / makefile
Last active October 16, 2017 18:10
all: bison
bison: main.o lex.yy.c
cc -o $@ main.o bison.tab.c lex.yy.c -lfl
main.o: main.c
cc -c main.c
lex.yy.c: bison.l bison.y
bison -d bison.y
/* the "incl" state is used for picking up the name
* of an include file
*/
%x incl
%{
%}
%%
"include \"" BEGIN(incl);
push() //no recibe nada?
codegen_logical() //supongo que hace el asm apartir del output?
codegen_algebric() // ?
int string_to_num(char*) // devuelve 1 o 0
codegen_assign() // ?
#exec(open("C:/Users/Pablo.PABLO-XPS/Documents/python/billscript.py").read())
filepath = "C:/Users/Pablo.PABLO-XPS/Documents/python/"
filename = "april"
fileext = ".txt"
bills = {}
class Bill:
def __init__(self, price, details):
#!/bin/bash
# Bash Menu Script Example
add_to_log() {
command echo $1>>log
}
crear(){
echo "Nombre Usuario"
read namevar
echo "- Su respuesta: $namevar"
@Sleepful
Sleepful / mkefile
Last active September 6, 2018 05:25
# change application name here (executable output name)
TARGET=knapsack
# compiler
CC=gcc
# debug
DEBUG=-g
# optimisation
OPT=-O0
# warnings
var nsp2 = io.of('/2');
nsp2.on('connection', socket => {
socket.on('change color', (color) => {
nsp2.broadcast.emit('change color', color)
}
var nsp3 = io.of('/3');
nsp3.on('connection', socket => {
socket.on('change color', (color) => {
nsp3.broadcast.emit('change color', color)
# the join tables, many_to_many between:
#
# - categories_type(s)
# - filter
#
# - categories_type(s)
# - word
#
# type(s) refer to: bool, text, multi, datetime
#