Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🛒

Jonas Boserup boserup

💭
🛒
View GitHub Profile
@boserup
boserup / apple-event.js
Created Sep 15, 2020 — forked from marco79cgn/apple-event.js
Widget which opens the Apple Event Stream on YouTube
View apple-event.js
let widget = new ListWidget()
widget.setPadding(0,0,0,0)
widget.url = "https://p-events-delivery.akamaized.net/1108byjxmnoakagswdphbwatymztxxew/m3u8/main.m3u8"
widget.backgroundColor = new Color("#FFFFFF")
await loadImage("https://cdn.vertexreport.com/wp-content/uploads/2020/09/Apple-Event-September.jpg")
Script.setWidget(widget)
Script.complete()
View gist:e8fa3c03726114801cc69a81797cd679
00000000 4b df fe 7f ff ff ff dd 2f 7f f9 ff ff ff ff ff |K......./.......|
00000010 ff ff ff cd 2f 7f f9 ff ff ff ff ff ff ff ff ff |..../...........|
00000020 fd d2 f7 ff 9f ff ff ff ff ff ff ff ff fd 5f 48 |.............._H|
00000030 97 bf fc ff ff ff ff 84 bd ff e7 ff ff ff ff ff |................|
00000040 ff ff ff cb f3 b4 bd ff e7 ff ff ff ff ff ff ff |................|
00000050 ff e1 2f 7f f9 ff ff ff ff ff ff ff ff f4 |../...........|
0000005e
View gist:208a9b4e924473552f5755eebfc94783
(fec0ded)^8
XOR
6861636b696e67d3ac
bfbdc26e8293efadb7
c36e949ca5acb38d63
898da8b1b3886899
View example1.cs
public static List<User> All() {
return PersistentObject.INSTANCE.Fetch(
new Dictionary<string, object>(),
"users",
typeof(Book)
).ConvertAll(x => (Book)x);
}
View search.sql
SELECT *,
ts_rank(
SETWEIGHT(
TO_TSVECTOR(
'english',
COALESCE(search_view.name, '')
),
'A'
) || SETWEIGHT(
TO_TSVECTOR(
View gist:d9f16c69cb222e57e4bf335371056769
catalogue.getEntries().parallelStream().forEach(
e -> {
try {
Product product = e.getProduct();
// ...
} catch (RemoteException exn) {
throw new Error("Remote failure: " + exn);
} catch (BadLocationException e) {
View Book.cs
/*
*Contains data about the concept of a book.
*
*/
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations;
using CentralServer.ObjectMapper;
using CentralServer.Utilities;
View keybase.md

Keybase proof

I hereby claim:

  • I am boserup on github.
  • I am boserup (https://keybase.io/boserup) on keybase.
  • I have a public key ASBPZBU-h_rpM2k9iX_uh8XZ4lfMa7qxFat9-g-yrvpg_Ao

To claim this, I am signing this object:

@boserup
boserup / Tweak.xm
Created Oct 14, 2015 — forked from steventroughtonsmith/Tweak.xm
iOS 9 Enable Splitscreen Jailbreak Tweak (Theos)
View Tweak.xm
/* How to Hook with Logos
Hooks are written with syntax similar to that of an Objective-C @implementation.
You don't need to #include <substrate.h>, it will be done automatically, as will
the generation of a class list and an automatic constructor.
%hook ClassName
// Hooking a class method
+ (id)sharedInstance {