This file contains 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
#!/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 \ |
This file contains 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
#!/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 ./VBoxLinuxAdditions.run | |
echo "Minimal Arch Linux on VirtualBox UEFI" | |
sleep 3s | |
# Keyboard layout | |
echo -n "Keyboard layout......." | |
loadkeys br-abnt2 |
This file contains 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
library(ggplot2) | |
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") | |
} |
This file contains 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
// 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) { |
This file contains 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
#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: |