This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Run this code under the Python interpreter. | |
""" | |
import os | |
import random | |
import re | |
import openai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const { | |
exec, | |
} = require('child_process'); | |
const app = express(); | |
const port = 7000; | |
let isRunning = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This | |
// Use this for math.div(number, divider) function | |
@use "sass:math" | |
// The sqrt function, just to calc sqrt(3) ._. | |
// Source: https://www.antimath.info/css/sass-sqrt-function/ | |
@function sqrt($r) | |
$x0: 1 | |
$x1: $x0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
from numpy import pi, array, full, uint8 | |
import imageio | |
import matplotlib.pyplot as plt | |
theta = 0.5 # valor entre [0,1) | |
light = 1 # valor entre [0,1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const L = 37, R = 39, U = 38, D = 40; | |
let a = [ | |
[L, U, R, D], [L, D, R, U], | |
[R, U, L, D], [R, D, L, U], | |
[U, L, D, R], [U, R, D, L], | |
[D, L, U, R], [D, R, U, L] | |
]; | |
let d = document; | |
let c = d.getElementsByTagName("canvas")[0]; | |
let gdir = () => { return a[Math.floor(Math.random() * a.length)]; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PORT="5555" | |
DEVICE=$(adb devices | grep "device$") | |
echo "Esperando por un dispositivo..." | |
adb wait-for-device | |
# Revisamos si se está conetado a DEBUG USB | |
if [ -z "$DEVICE" ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ad Skip Script - Javascript | |
*/ | |
/** | |
* Ad Skip Script - Javascript | |
*/ | |
let d = document; | |
let t = 1000; | |
let e = document.createEvent("HTMLEvents"); | |
e.initEvent("click", true, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import warnings | |
class Action(object): | |
"""Una acción""" | |
def __init__(self): | |
super(Action, self).__init__() | |
self.to_do = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# import the cool libray | |
import RPi.GPIO as GPIO | |
# others | |
import time | |
import argparse | |
import threading | |
import signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ext.domain.subdomain.appname; | |
import java.net.Socket; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import android.util.Log; | |
/** | |
* Esta clase define un objeto rebuscador de direcciones IP que |
NewerOlder