Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // Auto-pilot for docking with the International Space Station | |
| // | |
| // The program uses Artificial Intelligence and Decision Trees (i.e. basic kinematics and a bunch of if statements) | |
| // to perform docking with the ISS from any starting position. | |
| // | |
| // To use it: | |
| // - open the SpaceX simulation website: https://iss-sim.spacex.com/ | |
| // - open the Developer's console and paste the contents of this file | |
| // | |
| // Demo: https://youtu.be/jWQQH2_UGLw |
| #!/bin/sh | |
| echo Install all AppStore Apps at first! | |
| read -p "Press any key to continue... " -n1 -s | |
| echo '\n' | |
| echo Installing Homebrew... | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| echo Installing Brew favorites... | |
| brew tap homebrew/cask-fonts |
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #! /usr/bin/env ruby | |
| # This script can be used to parse and dump the information from | |
| # the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
| # | |
| # It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
| # | |
| # It also dumps all of the records into CSV files inside a 'CSV' folder, that is created | |
| # in whatever the working directory of the program is when executed. | |
| # |
A console to recreate the famous "Harder, Better, Faster, Stronger" by Daft Punk. Use your keyboard ! not the mouse (hey, it's a console). Use the other keys to get different sounds (Normal, High, Low). You can do it !
A Pen by Malik Dellidj on CodePen.
| PGraphics flatImg; | |
| PImage img; | |
| float rt3 = sqrt(3); | |
| float res = 10; /* resolution */ | |
| float radius = 2.1 * res / rt3; | |
| float zoom = 1.0; | |
| void setup() { | |
| noLoop(); | |
| smooth(); |