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 / 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
@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;
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
[net]
# Testing
batch=64
subdivisions=16
# Training
# batch=64
# subdivisions=16
width=640
height=640
channels=3
import numpy as np
import cv2
import os
import time
import signal
import timeit
import time
import sys
from termcolor import colored

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 -

[{"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}},
# 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!.
@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 => {
label pixel0 pixel1 pixel2 pixel3 pixel4 pixel5 pixel6 pixel7 pixel8 pixel9 pixel10 pixel11 pixel12 pixel13 pixel14 pixel15 pixel16 pixel17 pixel18 pixel19 pixel20 pixel21 pixel22 pixel23 pixel24 pixel25 pixel26 pixel27 pixel28 pixel29 pixel30 pixel31 pixel32 pixel33 pixel34 pixel35 pixel36 pixel37 pixel38 pixel39 pixel40 pixel41 pixel42 pixel43 pixel44 pixel45 pixel46 pixel47 pixel48 pixel49 pixel50 pixel51 pixel52 pixel53 pixel54 pixel55 pixel56 pixel57 pixel58 pixel59 pixel60 pixel61 pixel62 pixel63 pixel64 pixel65 pixel66 pixel67 pixel68 pixel69 pixel70 pixel71 pixel72 pixel73 pixel74 pixel75 pixel76 pixel77 pixel78 pixel79 pixel80 pixel81 pixel82 pixel83 pixel84 pixel85 pixel86 pixel87 pixel88 pixel89 pixel90 pixel91 pixel92 pixel93 pixel94 pixel95 pixel96 pixel97 pixel98 pixel99 pixel100 pixel101 pixel102 pixel103 pixel104 pixel105 pixel106 pixel107 pixel108 pixel109 pixel110 pixel111 pixel112 pixel113 pixel114 pixel115 pixel116 pixel117 pixel118 pixel119 pixel120 pixel121 pixel122 pixel123 pixel124 pix