Skip to content

Instantly share code, notes, and snippets.

Just coding

André Queiroz andrequeiroz

Just coding
Block or report user

Report or block andrequeiroz

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
andrequeiroz /
Created Oct 12, 2019
Windows 10 USB Flash Drive Install Media
#!/usr/bin/env bash
# usage: script usbdevice isoimage. e.g. script /dev/sde ~/Downloads/Win10_x32.iso
echo "Creating Windows 10 Bootable USB Flash Drive on Linux Terminal"
sleep 3s
echo -n "Formating USB Flash Drive..........................."
parted --script $1 \
mklabel gpt \
andrequeiroz /
Last active Oct 12, 2019
Install Arch Linux on VirtualBox over UEFI
#!/usr/bin/env bash
# if host is Arch install virtualbox-guest-utils-nox virtualbox-guest-modules-arch on guest, otherwise mount guest additions CD image after install and run ./
echo "Minimal Arch Linux on VirtualBox UEFI"
sleep 3s
# Keyboard layout
echo -n "Keyboard layout......."
loadkeys br-abnt2
andrequeiroz / bingo.r
Last active Oct 9, 2018
Custom bingo cards for the lazy
View bingo.r
bingo_numbers <- function(n, max_outcome) {
n <- as.integer(n)
if (length(n) > 1 || n <= 0) {
stop("n must be a single integer greater than zero")
andrequeiroz / normal_table.c
Created Oct 8, 2017
C program that calculates the normal cumulative distribution function values
View normal_table.c
// compilation: gcc -Wall -std=c99 -lm normal_table.c -o normal_table
#include <stdio.h>
#include <time.h>
#include <math.h>
#define pi 3.14159265359
float valor(double [], double);
int main(void) {
andrequeiroz /
Last active Aug 9, 2019
Implementation of Holt-Winters algorithms in Python 2
#The MIT License (MIT)
#Copyright (c) 2015 Andre Queiroz
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
#furnished to do so, subject to the following conditions:
You can’t perform that action at this time.