Skip to content

Instantly share code, notes, and snippets.

View alexozer's full-sized avatar
💭
(♡ヮ♡)

Alex Ozer alexozer

💭
(♡ヮ♡)
View GitHub Profile
var gridItems = document.getElementsByClassName("yt-shelf-grid-item");
gridItems.forEach(function hideElem(elem) {
var inner = elem.innerHTML.toLowerCase();
if(inner.indexOf("minecraft") >= 0) {
elem.style.display = "hidden";
}
});
/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
static int borderpx = 2;
let nixos = import <nixpkgs> {}; in
let unstable = import <unstable> {}; in
let customPythonPackages = (pythonPackages: [
(let
pname = "nanomsg";
version = "1.0";
in
pythonPackages.buildPythonPackage rec {
name = "${pname}-${version}";
@alexozer
alexozer / gist:555f325191662b30c7666650c1eb010b
Created November 5, 2017 01:49
can you send me the text
(* Raised when an irrecoverable error occurs during runtime. Should never be
* thrown unless there is a problem with the game; all error states should
* either be caught during initialization or be handled through the Illegal
* exception during runtime *)
exception RuntimeError of string
(* [pretty_item_list lst container] is a concatenation of strings in
* [container] separated by newlines *)
let rec pretty_item_list lst container =
let item_str item = item.iid ^ ": " ^ item.idescription in
; Dracula theme
[colors]
background = #282a36
current-line = #44475a
selection = #44475a
foreground = #f8f8f2
comment = #6272a4
cyan = #8be9fd
green = #50fa7b
orange = #ffb86c
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=PARTLABEL=arch rw
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>ProductBuildVersion</key>
<string></string>
<key>ProductName</key>
<string>Linux</string>
<key>ProductVersion</key>
<string>Arch Linux</string>
</dict>
@alexozer
alexozer / .py
Created January 14, 2018 05:55
mission framework
import itertools
from mission.framework.helpers import should_run, should_finish, call_if_function
from mission.framework.task import Task
from mission.framework.primitive import NoOp, Succeed
class Sequential(Task):
"""Do tasks in order.
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.
Programmer supports the following devices:
Device code: 0x44
avrdude: AVR device initialized and ready to accept instructions