This file contains hidden or 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 fs = require('fs'); | |
let file = '' | |
file = "./Speech_English_pak/English_LipSyncData/SVM_Zuben_WeatherRain_English.xlip"//2.81 sec | |
file = "./Speech_English_pak/English_LipSyncData/SVM_Zuben_WhatDoYouWant_English.xlip"//1.84 sec | |
file = "./Speech_English_pak/English_LipSyncData/SVM_Zuben_WhatWasThat_English.xlip"//1.64secs | |
//file = './Speech_English_pak/English_LipSyncData/SVM_Zuben_InnosTeacher_00_English.xlip'//4.68 | |
const file_content = fs.readFileSync(file); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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] | |
name = "string-obfuscation" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
rand = "0.8" | |
proc-macro2 = "1.0" | |
quote = "1.0" |
This file contains hidden or 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
use std::io; | |
#[cfg(windows)] use winres::WindowsResource; | |
#[cfg(windows)] use static_vcruntime; | |
fn main() -> io::Result<()> { | |
#[cfg(windows)] { | |
static_vcruntime::metabuild(); | |
WindowsResource::new() | |
.set_icon("icon.ico") | |
.compile()?; |
This file contains hidden or 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] | |
name = "test_rust" | |
version = "0.1.0" | |
edition = "2021" | |
[target.'cfg(target_os = "windows")'.dependencies.windows] | |
version = "0.39.0" | |
features = [ | |
"Win32_Foundation", | |
"Win32_Security_Authentication_Identity" |
This file contains hidden or 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 TelegramBot = require('node-telegram-bot-api'); | |
const token = 'TOKEN_TELEGRAM'; | |
const FRASES_PIRATAS = [ | |
{ | |
init: ["¿Has dejado ya de usar pañales?", "Espero que tengas un barco para una rápida huida."], | |
res: "¿Por qué? ¿Acaso querías pedir uno prestado?" | |
}, | |
{ |
This file contains hidden or 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
worker_processes 1; | |
error_log /var/log/nginx/error.log debug; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server_tokens off; | |
include mime.types; | |
charset utf-8; | |
log_format rt_cache '$remote_addr - $upstream_cache_status [$time_local] ' |
This file contains hidden or 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
//2^15 => 15 bits | |
const HALF_STEP = 16384n | |
const STEP = 32768 | |
const QUATERNION_LIMITS = 2 / (STEP) | |
/** | |
* The purpose of this small library is the compression of quaternions | |
* for transmit them over the network, where the bandwidth is limited. | |
*/ | |
class Quaternion { |
This file contains hidden or 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 crypto = require('crypto') | |
const myBuff = Buffer.allocUnsafe(1200); | |
const alg = crypto.getHashes() | |
for(let i = 0; i < alg.length; i++){ | |
const initTime = new Date().getTime() | |
for (let j = 0; j < 100000; j++) { | |
let digBuff = crypto.createHash(alg[i]).update(myBuff).digest() | |
} | |
const endTime = new Date().getTime() | |
console.log(`${alg[i]} - ${100000/((endTime - initTime) / 1000)} hash/s`) |
This file contains hidden or 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
Allocating 1000 buffers of 30000 bytes => avg 9.7mils max 33mils min 3mils | |
Copy 3 buffers of 10000 bytes in 1000 buffers of 30000 bytes: 13.166666666666666 mils max 23mils min 8mils |
NewerOlder