- Add your project logo.
- Write a short introduction to the project.
- If you are using badges, add them here.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 json | |
| import urllib | |
| import urllib.request | |
| import os | |
| import sys | |
| import hashlib | |
| # BUF_SIZE is totally arbitrary, change for your app! | |
| BUF_SIZE = 65536 # lets read stuff in 64kb chunks! |
This file contains hidden or 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
| # install chromium, its driver, and selenium | |
| !apt update | |
| !apt install libu2f-udev libvulkan1 | |
| !wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| !dpkg -i google-chrome-stable_current_amd64.deb | |
| !wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.70/linux64/chromedriver-linux64.zip | |
| !unzip -j chromedriver-linux64.zip chromedriver-linux64/chromedriver -d /usr/local/bin/ | |
| !pip install selenium chromedriver_autoinstaller | |
| # set options to be headless, .. |
This file contains hidden or 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
| const clamp = (value, min, max) => Math.min(Math.max(value, min), max) | |
| class SpatialHashMap { | |
| constructor(width, height) { | |
| this.width = width; | |
| this.height = height; | |
| this.grid = new Array(width * height).fill(null).map(() => []); | |
| } |
This file contains hidden or 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 SimpleCV import Camera | |
| class AsciiBoi: | |
| def __init__(self): | |
| pass | |
| def preProcess(self, img): | |
| edge_img = img.edges(30, 60) |
This file contains hidden or 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
| // | |
| // Author: Jonathan Blow | |
| // Version: 1 | |
| // Date: 31 August, 2018 | |
| // | |
| // This code is released under the MIT license, which you can find at | |
| // | |
| // https://opensource.org/licenses/MIT | |
| // | |
| // |
This file contains hidden or 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
| // | |
| // Author: Jonathan Blow | |
| // Version: 1 | |
| // Date: 31 August, 2018 | |
| // | |
| // This code is released under the MIT license, which you can find at | |
| // | |
| // https://opensource.org/licenses/MIT | |
| // | |
| // |
This file contains hidden or 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
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| ## Thanks to the discussion of various developers in this gist | |
| ## https://gist.github.com/andreptb/57e388df5e881937e62a#gistcomment-2346821 | |
| ## Especially clement-igonet. | |
| ### How to get Windows10 with Edge official base image run with WinRM and RDP: | |
| # To use Windows10-Edge vagrant you will first need to download https://aka.ms/msedge.win10.vagrant (this is now a zip file) | |
| # Execute `vagrant box add ./MsEdge\ -\ Win10.box --name Win10-official` after unzip the file to add the box to our base image list |