Skip to content

Instantly share code, notes, and snippets.

View ch0c01dxyz's full-sized avatar

Egar Rizki ch0c01dxyz

View GitHub Profile
@ch0c01dxyz
ch0c01dxyz / snmtdl.py
Created February 11, 2023 14:15
Simplified version of Neural Machine Translator using Deep Learning model.
import tensorflow as tf
import numpy as np
( x_train, y_train ), ( x_test, y_test ) = tf.keras.datasets.mnist.load_data ()
x_train = np.expand_dims ( x_train, axis = -1 )
x_test = np.expand_dims ( x_test, axis = -1 )
inp = tf.keras.layers.Input ( shape = ( 28, 28, 1 ) )
@ch0c01dxyz
ch0c01dxyz / Disable Devtools
Created February 4, 2023 11:56
Simple Javascript to disable devtools ( still could be bypassed ).
( function ()
{
( function a ()
{
try
{
( function b ( i )
{
if ( ( "" + ( i / i ) ).length !== 1 || i % 20 === 0 )
{