Skip to content

Instantly share code, notes, and snippets.

View lucydjo's full-sized avatar
🎯
Focusing

LucyDjo lucydjo

🎯
Focusing
  • paris
View GitHub Profile
@lucydjo
lucydjo / index.js
Created October 14, 2019 14:39 — forked from ch0mper/index.js
const brain = require('brain.js');
let trainedNet;
function encode(arg) {
return arg.split('').map(x => (x.charCodeAt(0) / 255));
}
function processTrainingData(data) {
return data.map(d => {
# This is the CMakeCache file.
# For build in directory: c:/Users/33767/Desktop/opencv_cuda/opencv/build
# It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
[{"input":"elle shift où car vous êtes","output":{"neutre":1}},
{"input":"catalogue est une erection visuelle prenez","output":{"vuglaire":1}},
{"input":"alerte infos ils ont contacté tout","output":{"neutre":1}},
{"input":"c'est pour dire de la merde","output":{"vuglaire":1}},
{"input":"lutte done jme suis fait casser","output":{"neutre":1}},
{"input":"il en peut plus de l'odeur","output":{"neutre":1}},
{"input":"de l'histoire de la politique non","output":{"neutre":1}},
{"input":"de dire dla merde c'est absolument","output":{"vuglaire":1}},
{"input":"fresh en réduisant son empreinte écologique","output":{"neutre":1}},
{"input":"blanc qui foutent le bordel au","output":{"vuglaire":1}},

ncols 257 nrows 282 xllcorner -3.846250000000 yllcorner 43.378563540856 cellsize 0.000805058366 NODATA_value -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -9999 -

import numpy as np
import cv2
import os
import time
import signal
import timeit
import time
import sys
from termcolor import colored
[net]
# Testing
batch=64
subdivisions=16
# Training
# batch=64
# subdivisions=16
width=640
height=640
channels=3
iptables -I INPUT -p tcp -s 0.0.0.0/0 --dport 27017 -j DROP
iptables -I INPUT -p tcp -s 127.0.0.1 --dport 27017 -j ACCEPT
iptables -I INPUT -p tcp -s <IP GOES HERE> --dport 27017 -j ACCEPT
iptables-save > /etc/iptables.conf # Save this changes to file
touch /etc/network/if-up.d/iptables # Create file to call conf from
echo "iptables-restore < /etc/iptables.conf" >> /etc/network/if-up.d/iptables # Add this line to this file
chmod +x /etc/network/if-up.d/iptables # Make the script executable
@lucydjo
lucydjo / ballot_pingpong.sol
Created September 16, 2020 13:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
//pragma experimental ABIEncoderV2;
contract sent974_democratic_system {
struct Membre{
bytes32 nom;
bytes32 prenom;
address adresseCryptoPublique;
@lucydjo
lucydjo / inference.py
Created October 10, 2023 09:32
Wav2Lip Bypass missing face frames
from os import listdir, path
import numpy as np
import scipy, cv2, os, sys, argparse, audio
import json, subprocess, random, string
from tqdm import tqdm
from glob import glob
import torch, face_detection
from models import Wav2Lip
import platform