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
--[[ | |
base64 -- v1.5.3 public domain Lua base64 encoder/decoder | |
no warranty implied; use at your own risk | |
Needs bit32.extract function. If not present it's implemented using BitOp | |
or Lua 5.3 native bit operators. For Lua 5.1 fallbacks to pure Lua | |
implementation inspired by Rici Lake's post: | |
http://ricilake.blogspot.co.uk/2007/10/iterating-bits-in-lua.html |
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 util = require('util'); | |
const axios = require('axios').default; | |
const customAxios = axios.create({ | |
baseURL: 'http://localhost:3000', | |
headers: { 'Content-Type': 'application/json' } | |
}); | |
const maxRetries = 5; | |
let currentRetry = 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
using System; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Random rnd = new Random(); | |
int numb = rnd.Next(1, 101); | |
int guess, guesses = 0; | |
Console.WriteLine("Gissa på ett tal mellan 1-100"); |