Skip to content

Instantly share code, notes, and snippets.

View 0xRampey's full-sized avatar
🏗️
Building....

Rampey 0xRampey

🏗️
Building....
View GitHub Profile
@0xRampey
0xRampey / dark-mode.scss
Last active August 24, 2022 02:28
Dark mode on fastpages blogs
$high-emph: rgba(white, 0.87);
$med-emph: rgba(white, 0.69); //Noicee
$low-emph: rgba(white, 0.38);
$dark-grey : #121212;
// $dark-grey : #1F1B24;
$overlay: mix($dark-grey, white, 95%);
$overlay-light: mix($dark-grey, white, 86%);
html, body, input, textarea, select, button {
color: $high-emph !important;
import argparse
def main(args):
""" Main entry point of the app """
print("hello world")
print(args)
if __name__ == "__main__":
@0xRampey
0xRampey / display_array.py
Created May 8, 2020 12:41
Quickest way to display a numpy array in Jupyter/Colab
from matplotlib.pyplot import imshow
%matplotlib inline
#image is a numpy array
imshow(image)
##Another way in colab is...
from google.colab.patches import cv2_imshow
cv2_imshow(image)
@0xRampey
0xRampey / README-Template.md
Created March 29, 2017 15:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@0xRampey
0xRampey / pace.js
Last active December 20, 2016 19:35
Supercharged pace.js
(function () {
var AjaxMonitor, Bar, DocumentMonitor, ElementMonitor, ElementTracker, EventLagMonitor, Evented, Events, NoTargetError, Pace, RequestIntercept, SOURCE_KEYS, Scaler, SocketRequestTracker, XHRRequestTracker, animation, avgAmplitude, bar, cancelAnimation, cancelAnimationFrame, defaultOptions, extend, extendNative, getFromDOM, getIntercept, handlePushState, ignoreStack, init, now, options, requestAnimationFrame, result, runAnimation, scalers, shouldIgnoreURL, shouldTrack, source, sources, uniScaler, _WebSocket, _XDomainRequest, _XMLHttpRequest, _i, _intercept, _len, _pushState, _ref, _ref1, _replaceState,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function (child, parent) {
for (var key in parent) {
if (__hasProp.call(parent, key)) child[key] = parent[key];
}
function ctor() {