https://github.com/DamRsn/NeuralNote
https://github.com/BShakhovsky/PolyphonicPianoTranscription
| struct palette { | |
| int palette[4]; | |
| char name[255]; | |
| char author[255]; | |
| }; | |
| // Sampled from: https://lospec.com/palette-list | |
| // Colors rearranged from lightest to darkest for consistency | |
| struct palette lospec_palettes[] = { | |
| { |
| #include <windows.h> | |
| #include <stddef.h> | |
| #include <stdio.h> | |
| int main(int argc, char ** argv) | |
| { | |
| FILE * fh; | |
| IMAGE_DOS_HEADER idh = {0}; | |
| DWORD signature = 0; | |
| long subsys_offset = 0; |
In this post I'm explaining the creation process for my latest tool rGuiIcons. It took me 7 days from tool design to release and I'm listing here how I lived it.
NOTE: I'm adding some details of my life during those days to better illustrate the time management and development, I think it could be interesting for the readers to see the big picture of it.
Earlier this year, by January-February, I decided to add a new feature to raygui, my immediate-mode gui library, I added icons support. I was in the process of developing some tools and I realized that custom icons could really make a difference and make the tools look way better.
| // Color Terminal Output Library | |
| // MIT Licensed Library | |
| // There are 6 colors: | |
| // | |
| // blue | |
| // green | |
| // cyan | |
| // red |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import os, sys | |
| from tempfile import gettempdir | |
| from subprocess import call | |
| def beep(waveform=(79, 45, 32, 50, 99, 113, 126, 127)): |
sudo apt-get install python-pip or wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.pysudo pip install powerline-statusgit clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.shset rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
> " Always show statusline
| # taken from http://raspberrypihell.blogspot.pt/2013/07/pyaudio-and-how-to-install.html | |
| sudo apt-get install git | |
| sudo git clone http://people.csail.mit.edu/hubert/git/pyaudio.git | |
| sudo apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev | |
| sudo apt-get install python-dev | |
| cd pyaudio | |
| sudo python setup.py install |
| import javafx.application.Application; | |
| import javafx.beans.property.BooleanProperty; | |
| import javafx.beans.property.SimpleBooleanProperty; | |
| import javafx.event.*; | |
| import javafx.scene.Node; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.effect.BoxBlur; | |
| import javafx.scene.input.MouseEvent; | |
| import javafx.scene.layout.*; |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs