Skip to content

Instantly share code, notes, and snippets.

View Arxero's full-sized avatar

Stanislav Ganev Arxero

View GitHub Profile
@Arxero
Arxero / subs.vtt
Created September 26, 2018 20:37
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
@Arxero
Arxero / subs.vtt
Created September 26, 2018 20:37
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
@Arxero
Arxero / asd
Created September 29, 2018 20:21
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
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
#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)))
#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)))
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)
}
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)
}
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') {
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}`)
}