Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nils Bergmann TheNoim

🏠
Working from home
View GitHub Profile
View SwipeableList.swift
import Foundation
import Combine
enum LoadDirection {
case BACK
case FORTH
}
protocol SwipeableList: ObservableObject, RandomAccessCollection where Index == Int, Element: IdentifiableElement {
func updateCurrentIndex(to index: Index);
@TheNoim
TheNoim / trig.scss
Last active Mar 13, 2019 — forked from kamikat/trig.scss
SCSS/SASS module calculating sin/cos/tan using Taylor Expansion.
View trig.scss
///////////////////////////////////////////////////////////////////////////////////
// Plain SASS Trigonometry Algorithm in Taylor Expansion //
// //
// Based on //
// http://japborst.net/posts/sass-sines-and-cosines //
// + http://thesassway.com/advanced/inverse-trigonometric-functions-with-sass //
///////////////////////////////////////////////////////////////////////////////////
$pi: 3.14159265359;
$_precision: 10;
View ios_framework_prepare.sh
#!/bin/bash
set -e
ROOT=${PWD}
SCRIPT_DIR="$(dirname "$BASH_SOURCE")"
cd "$SCRIPT_DIR"
SCRIPT_DIR=${PWD}
@TheNoim
TheNoim / diagnostics.plist
Created Feb 23, 2019
iPad 7,4 - unc0ver 3.0.0b32
View diagnostics.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppVersion</key>
<string>3.0.0~b32</string>
<key>LogFile</key>
<string>2019-02-23 09:29:06.781 Undecimus[9292:10459014] [*] unc0ver Version: 3.0.0~b30
2019-02-23 09:29:06.781 Undecimus[9292:10459014] [*] Darwin Kernel Version 18.2.0: Tue Oct 16 21:02:31 PDT 2018; root:xnu-4903.222.5~1/RELEASE_ARM64_T8011
2019-02-23 09:29:06.781 Undecimus[9292:10459014] [*] Bundled Resources Version: 1.0~b4
View keybase.md

Keybase proof

I hereby claim:

  • I am thenoim on github.
  • I am noim (https://keybase.io/noim) on keybase.
  • I have a public key ASADFRmb01JaHoYi133EfTe70Il5Mqxdblh0cxac0ZuWvgo

To claim this, I am signing this object:

@TheNoim
TheNoim / example.js
Created Sep 30, 2018
Fix realm infinity recursion and array stringify issue
View example.js
const Dog = {
name: 'Dog',
properties: {
name: 'string',
owners: {type: 'linkingObjects', objectType: 'Person', property: 'dog'},
}
};
const Person = {
name: 'Person',
View ios_framework_prepare.sh
#!/bin/bash
set -e
ROOT=${PWD}
SCRIPT_DIR="$(dirname "$BASH_SOURCE")"
cd "$SCRIPT_DIR"
SCRIPT_DIR=${PWD}
@TheNoim
TheNoim / index.js
Created Jul 8, 2018
Express test for ios
View index.js
const express = require('express')
const app = express()
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(3000, () => console.log('Example app listening on port 3000!'))
@TheNoim
TheNoim / pushbullet.sh
Last active Jan 7, 2018 — forked from outadoc/pushbullet.sh
Pushbullet bash script
View pushbullet.sh
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2
View WatchBridge.h
// RNCookieManagerIOS.h
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
//#import <RCTBridgeModule.h>
@import WatchConnectivity;