-
Download the
typeconvert
gist. -
Make it an executable -
chmod 755 typeconvert
-
Move it into your path -
~/.local/bin/
,/usr/local/bin/
-
You might have to close your terminal and open it again in order to use it
Use Typeconvert_V2.
Why can't I find a single and simple command line utility to convert a number in one base to another base.
Yeah, it's simple to make your own program or launch a python shell to get it to
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
#!/bin/bash | |
# A simple minecraft server backup utility shell script. | |
# This is meant to be run when you want to; alternatively, | |
# you can cron job it. | |
# Requires pipe-viewer (pv) and bzip2 | |
# This assumes a few things that may need to be replaced. | |
# 1. Variable minecraft is the directory to your minecraft server. |
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
#!/bin/bash | |
# To run this: | |
# > create a file called program.sh | |
# > $ chmod +x program.sh | |
# > $ ./program.sh | |
# Note: | |
# > keep if=/dev/urandom if you want a randomized file | |
# > keep if=path/to/filename if you want a structured file (which is dependent on your file) |
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
# CS 313: Machine Learning | |
# Make a program to perform optimization through Differential Evolution on the Eggholder Function | |
# For a population of [20, 50, 100, 200] | |
# For [50, 100, 200] generations | |
# Also, plot the global minimum fitness and average fitness for each generation | |
# for each population size and generation | |
# Author: IceCereal |
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
""" | |
This is a downloader of data from a particular subreddit. | |
Change the `subredditName` to your desired subreddit and then | |
watch the things get downloaded. You need praw (at the time of | |
writing this, it's praw6) and wget to run this program. | |
Step 1: https://www.reddit.com/prefs/apps <- Make an Application | |
Get the client_id and client_secret | |
Step 2: Enter desired subreddit in subredditName | |
Step 3: Run the program |
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
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.ArrayList; |
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
from sklearn import linear_model | |
from matplotlib import pyplot as plt | |
x = [[2],[1],[5],[10]] | |
y = [27, 11, 75, 155] | |
LinearRegression = linear_model.LinearRegression() | |
LinearRegression = LinearRegression.fit(x,y) | |
plt.scatter(x,y) |