Skip to content

Instantly share code, notes, and snippets.

View controversial's full-sized avatar
🧙‍♂️
doing magic

Luke Deen Taylor controversial

🧙‍♂️
doing magic
View GitHub Profile
@EllyLoel
EllyLoel / reset.css
Last active April 13, 2024 18:14
CSS Reset
/*
Made by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Notes:
- `:where()` is used to lower specificity for easy overriding.
*/
@devhammed
devhammed / countries.json
Created October 17, 2020 05:21
Countries with Name, Dial Code, Emoji Flag and ISO Code
[
{
"name": "Afghanistan",
"flag": "🇦🇫",
"code": "AF",
"dial_code": "+93"
},
{
"name": "Åland Islands",
"flag": "🇦🇽",

Titles from the MoMA

(As generated by an AI)

Imperial Ornament From the Gifted, 1967-78
Whisper From the Portfolio Projects, May 16, 1994
Lines at the Root of the Ballet (c. 1934)
Man with Four Bosses (January 25-28, 1963)
The Owls and Floating Graduation (August 12-13, 1965)
Reclining Corners, 10 April 1989

@RubaXa
RubaXa / index.html
Created December 12, 2017 06:36
Repaint: offsetWidth vs. getBoundingClientRect (http://jsbench.github.io/#aed00af2bf5a7393a934c517018060b9) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Repaint: offsetWidth vs. getBoundingClientRect</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
anonymous
anonymous / bf.py
Created October 14, 2016 03:05
Lambda.
next(_for y in [__import__('sys')] for _ in [y.setrecursionlimit(10000)] for m in [__import__('msvcrt')] for p in [lambda *s:[y.stdout.write(str(_)) for _ in s]] for h in [lambda s,i:next(_ for _ in [s.m.pop(str(s.k)),s.m.setdefault(str(s.k),i)])] for j in [lambda s,i:next(_ for o in [s.m[str(s.k)]+i] for _ in [h(s,o)])] for e in [lambda s,i:next(_ for _ in [s.n[str(s.l)].pop('p'),s.n[str(s.l)].setdefault('p',i)])] for t in [lambda s,a,v:setattr(s,a,v)] for z in [lambda s,a,v:t(s,a,getattr(s,a)+v)] for w in [lambda:next(_ for _ in [p('ERROR!'),y.exit(1)])] for b in [open(y.argv[1],"r") if len(y.argv)>1 else w()] for _ in [type('',(),{'__init__':lambda s:next(_for _ in [t(s,'c',"".join(["".join(c) for c in b.readlines()])),b.close(),t(s,'e',1),t(s,'i',len(s.c)),t(s,'p',0),t(s,'k',0),t(s,'m',{str(i):0 for i in range(5000)}),t(s,'d',1),t(s,'l',0),t(s,'n',{str(i):{'p':0} for i in range(5000)}),s._()]),'_':lambda s:next(_for c in [s.c[s.p]]for _ in [[h(s,ord(m.getch())),z(s,'p',1),t(s,'d',0)] if c==',' else None,[
@steventroughtonsmith
steventroughtonsmith / main.m
Created March 24, 2016 08:08
Load Mach-O executable at runtime and execute its entry point
void callEntryPointOfImage(char *path, int argc, char **argv)
{
void *handle;
int (*binary_main)(int binary_argc, char **binary_argv);
char *error;
int err = 0;
printf("Loading %s…\n", path);
handle = dlopen (path, RTLD_LAZY);
@omz
omz / File Picker.py
Created February 22, 2016 03:14
File Picker.py
# coding: utf-8
import ui
import os
from objc_util import ObjCInstance, ObjCClass
from operator import attrgetter
import time
import threading
import functools
import ftplib
import re
@BenjyWiener
BenjyWiener / ReplayKit.py
Last active September 7, 2017 04:34
ReplayKit.py
# coding: utf-8
from objc_util import *
from Foundation import NSBundle
NSBundle.bundleWithPath_('/System/Library/Frameworks/ReplayKit.framework').load()
RPScreenRecorder = ObjCClass('RPScreenRecorder')
@jsbain
jsbain / notificationplayground.py
Created January 26, 2016 08:50
notificationplayground.py
# coding: utf-8
#. objc from http://www.thinkandbuild.it/interactive-notifications-with-notification-actions/
from objc_util import *
UIUserNotificationSetting = ObjCClass('UIUserNotificationSettings')
UIMutableUserNotificationCategory = ObjCClass('UIMutableUserNotificationCategory')
UIMutableUserNotificationAction = ObjCClass('UIMutableUserNotificationAction')
UIUserNotificationSettings = ObjCClass('UIUserNotificationSettings')
UILocalNotification = ObjCClass('UILocalNotification')