Skip to content

Instantly share code, notes, and snippets.

const setStyleVar = (name, value) => {
document.documentElement.style.setProperty(`--${name}`, value);
}
const getStyleVar = name => {
return getComputedStyle(document.documentElement).getPropertyValue(`--${name}`);
}
/// `z-index` is an <Integer> property, we can abuse that to get the evaluated value of a CSS variable
const getStyleVarInt = name => {
@max-m
max-m / PRE-SPLIT
Created November 23, 2019 21:34
rgbasm v0.3.9-44-gea00348
[max@/tmp]git clone https://github.com/mid-kid/pokecrystal.git pokecrystal-2/ 22:29:51
Cloning into 'pokecrystal-2'...
remote: Enumerating objects: 82747, done.
remote: Total 82747 (delta 0), reused 0 (delta 0), pack-reused 82747
Receiving objects: 100% (82747/82747), 44.37 MiB | 5.45 MiB/s, done.
Resolving deltas: 100% (61104/61104), done.
[max@/tmp]cd pokecrystal-2/ 22:30:10
[max@/t/pokecrystal-2 (optimization)]git co 0072977^ 22:30:13
HEAD is now at 4fafcc9be Make engine/pokemon/evolve.asm the main file
[max@/t/pokecrystal-2 ((4fafcc9b…))]time make -j4
class SevenSegment extends HTMLDivElement {
static get observedAttributes() {
return [ 'mode', 'value' ]
}
constructor() {
super()
this.setMode(this.getAttribute('mode'))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am max-m on github.
  • I am max_m (https://keybase.io/max_m) on keybase.
  • I have a public key ASBbuM9zIy736KmWStp7nbZZXkKkNS8wFHRawtvDpRoUEAo

To claim this, I am signing this object:

@max-m
max-m / Dockerfile
Last active July 23, 2017 15:11
PHP
FROM php:fpm
MAINTAINER Maximilian Mader
# Install native extensions
RUN buildDeps=" \
locales \
libmcrypt-dev \
libpng12-dev \
libfreetype6-dev \
@max-m
max-m / ff-tb-userChrome.css
Created March 23, 2014 13:10
Firefox and Thunderbird Aero fixes - userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* Firefox And Thunderbird Aero Fixes - Sigle File For Both Applications */
@media(-moz-windows-glass) {
#TabsToolbar:not(:-moz-lwtheme)::before,
#TabsToolbar:not(:-moz-lwtheme)::after,
#tabs-toolbar:not(:-moz-lwtheme)::before,
#tabs-toolbar:not(:-moz-lwtheme)::after {
box-shadow: none !important;
@max-m
max-m / gist:5459681
Created April 25, 2013 13:28
School computer ...
OpenGL version: 1.3.0 - Build 4.14.10.3924
OpenGL vendor: Intel
OpenGL renderer: Intel 845G
OpenGL extensions: GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgrGL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_cull_vertex GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_WIN_s
[[3,3,3,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3],[1,1,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1],[3,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,3],[3,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,3],[3,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,3],[3,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,3],[3,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,3],[3,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,3],[3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3],[3,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,3],[3,
_________________________________________
/ \
| _______________________________________ |
| __ / __________________ / ______ < Muh! |
| > \ \ | | | | ------ | | | | \ ^__^ | | |
| | | \ | | (oo)\_______ | | | | (__)\ |
| )\/\ | | | | | | ||----w | | | | \ || |
| || / | | | | ------------------ | | | | |
| \ ^__^ | | | | \ (oo)\_______ | | | | |
| (__)\ )\/\ | | | | ||----w | | | | \ || |