Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
🤔

Noobgam Noobgam

🤔
🤔
View GitHub Profile
View sha256.js
async function sha256(message) {
// encode as UTF-8
const msgBuffer = new TextEncoder('utf-8').encode(message);
// hash the message
const hashBuffer = await crypto.subtle.digest('SHA-256', msgBuffer);
// convert ArrayBuffer to Array
const hashArray = Array.from(new Uint8Array(hashBuffer));
View planes2.cpp
#include <iostream>
#include <stdio.h>
#include <vector>
#include <functional>
#include <unordered_set>
#include <algorithm>
#include <set>
#include <map>
#include <cmath>
#include <string>
View planes.cpp
#include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <cmath>
#include <string>
#include <cstring>
#include <ctime>
View hardcore.cpp
//a.cpp
//a.* can not include b.*
struct Test {
int Bar();
};
struct Test2 {
int Barr();
};
View factors.json
{
"Caitlyn": {
"laning": {
"allin": 0.3, //Сила в All-in ситуациях
"poke": 0.8, //Харасс на линии
"escape": 0.4, //Возможность избежать ганков
"sustain": 0.1, //Вшитый в героя отхил
"ally_heal": 0.0, //Вшитые в героя хилы союзников
"ally_shield": 0.0, //Вшитые в героя шилды (ульт лулу и подобное считать за шилд)
},
View govno.cpp
#include <cstdio>
#include <vector>
using namespace std;
vector <vector <int>> G1;
int** G2;
vector <pair <int, int>> G3;
int main() {
int n, m;
View tribe_wars_2.js
autoupgrade = 0;
autohq = 1;
if (autoupgrade === 1) {
setInterval(function() {
current_queue = document.getElementsByClassName('in-queue building-queue short')[0];
busy = -1
if (current_queue === undefined) {
busy = 0;
} else {
View tribe_wars.js
var arrival = new Date(2018, 1, 26, 23, 27, 0, 0);
btn = document.getElementById("troop_confirm_go");
x = 1;
y = 5;
dist = Math.sqrt(x * x + y * y);
speed = 18;
//speed = 10.256410635108494;
game_speed = 1.5
troop_speed = 0.65
multiplier = 0.9096822222222225
View treap.cpp
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include <set>
#include <map>
View a.cpp
#include <cstdio>
#include <cmath>
#include <ctime>
#include <vector>
#include <set>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <string>