Skip to content

Instantly share code, notes, and snippets.

Stanislav Ganev Arxero

Block or report user

Report or block Arxero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Arxero
Arxero / typescript.json
Created May 13, 2019
Maverick's TypeScript Snippets
View typescript.json
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
@Arxero
Arxero / javascript.json
Created Apr 22, 2019
Maverick's JavaScript snippets
View javascript.json
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
View 04oddAndEvenSum.js
function solution(input) {
input = input.toString().split('').map(x => +x)
let evenNumbers = input.filter((x) => x % 2 == 0)
let oddNumbers = input.filter((x) => x % 2 != 0)
let evenSum = evenNumbers.reduce((a, b) => a + b)
let oddSum = oddNumbers.reduce((a, b) => a + b)
console.log(`Odd sum = ${oddSum}, Even sum = ${evenSum}`)
}
View 09. Tseam Account.js
function solution(input) {
let games = input[0].split(' ')
for (let i = 1; i < input.length; i++) {
let inputLine = input[i].split(' ')
let command = inputLine[0]
let game = inputLine[1]
let expansion = ''
if (command == 'Expansion') {
View 01. Sort Numbers - JavaScript.js
function solution(n1, n2, n3) {
let result = ''
let numarray = [n1, n2, n3].sort((a, b) => b - a).forEach(x => {
result += x + '\n'
})
console.log(result)
}
View 01. Sort Numbers - JavaScript.js
function solution(n1, n2, n3) {
if (n1 > n2 && n1 > n3) {
console.log(n1)
if (n2 > n3) {
console.log(n2)
console.log(n3)
} else {
console.log(n3)
console.log(n2)
}
View RealSnow_AMXX_XMas2015 without blue fog | ny_snow.amxx without blue fog
#include <amxmodx>
#include <engine>
#include <hamsandwich>
#define PLUGIN "Snow"
#define VERSION "0.6"
#define AUTHOR "Mistrick / edit LAWLIET / Nickron"
#define get_bit(%1,%2) (%1 & (1 << (%2 & MAXCLIENTS-1)))
#define set_bit(%1,%2) (%1 |= (1 << (%2 & MAXCLIENTS-1)))
View RealSnow_AMXX_XMas2015
#include <amxmodx>
#include <engine>
#include <hamsandwich>
#define PLUGIN "Snow"
#define VERSION "0.6"
#define AUTHOR "Mistrick / edit LAWLIET / Nickron"
#define get_bit(%1,%2) (%1 & (1 << (%2 & MAXCLIENTS-1)))
#define set_bit(%1,%2) (%1 |= (1 << (%2 & MAXCLIENTS-1)))
View Jumanji: Welcome to the Jungle - Plain Subtitles
1
00:01:22,974 --> 00:01:24,508
Hey, kiddo.
2
00:01:24,510 --> 00:01:26,677
- What?
- I found something.
3
View asd
1
00:00:25,600 --> 00:00:27,534
<i>This is the Asgardian</i>
2
00:00:27,536 --> 00:00:30,005
<i>refugee vessel</i> Statesman.
3
00:00:32,708 --> 00:00:34,009
You can’t perform that action at this time.