Skip to content

Instantly share code, notes, and snippets.

View iSevenDays's full-sized avatar

Anton Sokolchenko iSevenDays

View GitHub Profile
@robonxt
robonxt / Installing the Pebble app on iOS with Sideloadly.md
Last active November 6, 2024 21:32
Installing the Pebble app on iOS with Sideloadly - Rebble (Now)Official Installation Guide by robonxt

NOTICE:

Rebble have an official official guide based on this, so please follow their guide on their website at help.rebble.io/sideload-ios-app.

Please direct your questions and suggestions to the helpful people in the official Rebble Discord Server

This guide is in maintenance mode. I am only keeping this guide up as a archive and for those who stumble upon it through old links.

Thank you for all the support, and long live Pebble and Rebble!

import Foundation
struct Partial<Wrapped>: CustomStringConvertible, CustomDebugStringConvertible {
enum Error<ValueType>: Swift.Error {
case missingKey(KeyPath<Wrapped, ValueType>)
case invalidValueType(key: KeyPath<Wrapped, ValueType>, actualValue: Any)
}
private var values: [PartialKeyPath<Wrapped>: Any?] = [:]
@zats
zats / emojis.swift
Created September 17, 2017 18:24
All emojis available in iOS 11.0 including lookup categories for gender and skin-tone dependent
let emojis: [String: [String]] = [
// +[EMFEmojiCategory TravelAndPlacesEmoji]
"travel": ["๐Ÿš—", "๐Ÿš•", "๐Ÿš™", "๐ŸšŒ", "๐ŸšŽ", "๐ŸŽ", "๐Ÿš“", "๐Ÿš‘", "๐Ÿš’", "๐Ÿš", "๐Ÿšš", "๐Ÿš›", "๐Ÿšœ", "๐Ÿ›ด", "๐Ÿšฒ", "๐Ÿ›ต", "๐Ÿ", "๐Ÿšจ", "๐Ÿš”", "๐Ÿš", "๐Ÿš˜", "๐Ÿš–", "๐Ÿšก", "๐Ÿš ", "๐ŸšŸ", "๐Ÿšƒ", "๐Ÿš‹", "๐Ÿšž", "๐Ÿš", "๐Ÿš„", "๐Ÿš…", "๐Ÿšˆ", "๐Ÿš‚", "๐Ÿš†", "๐Ÿš‡", "๐ŸšŠ", "๐Ÿš‰", "๐Ÿš", "๐Ÿ›ฉ", "โœˆ๏ธ", "๐Ÿ›ซ", "๐Ÿ›ฌ", "๐Ÿš€", "๐Ÿ›ฐ", "๐Ÿ’บ", "๐Ÿ›ถ", "โ›ต๏ธ", "๐Ÿ›ฅ", "๐Ÿšค", "๐Ÿ›ณ", "โ›ด", "๐Ÿšข", "โš“๏ธ", "๐Ÿšง", "โ›ฝ๏ธ", "๐Ÿš", "๐Ÿšฆ", "๐Ÿšฅ", "๐Ÿ—บ", "๐Ÿ—ฟ", "๐Ÿ—ฝ", "โ›ฒ๏ธ", "๐Ÿ—ผ", "๐Ÿฐ", "๐Ÿฏ", "๐ŸŸ", "๐ŸŽก", "๐ŸŽข", "๐ŸŽ ", "โ›ฑ", "๐Ÿ–", "๐Ÿ", "โ›ฐ", "๐Ÿ”", "๐Ÿ—ป", "๐ŸŒ‹", "๐Ÿœ", "๐Ÿ•", "โ›บ๏ธ", "๐Ÿ›ค", "๐Ÿ›ฃ", "๐Ÿ—", "๐Ÿญ", "๐Ÿ ", "๐Ÿก", "๐Ÿ˜", "๐Ÿš", "๐Ÿข", "๐Ÿฌ", "๐Ÿฃ", "๐Ÿค", "๐Ÿฅ", "๐Ÿฆ", "๐Ÿจ", "๐Ÿช", "๐Ÿซ", "๐Ÿฉ", "๐Ÿ’’", "๐Ÿ›", "โ›ช๏ธ", "๐Ÿ•Œ", "๐Ÿ•", "๐Ÿ•‹", "โ›ฉ", "๐Ÿ—พ", "๐ŸŽ‘", "๐Ÿž", "๐ŸŒ…", "๐ŸŒ„", "๐ŸŒ ", "๐ŸŽ‡", "๐ŸŽ†", "๐ŸŒ‡", "๐ŸŒ†", "๐Ÿ™", "๐ŸŒƒ", "๐ŸŒŒ", "๐ŸŒ‰", "๐ŸŒ"],
// +[EMFEmojiCategory NatureEmoji]
"nature": ["๐Ÿถ", "๐Ÿฑ", "๐Ÿญ", "๐Ÿน", "๐Ÿฐ", "๐ŸฆŠ", "๐Ÿป", "๐Ÿผ", "๐Ÿจ", "๐Ÿฏ", "๐Ÿฆ", "๐Ÿฎ", "๐Ÿท", "๐Ÿฝ", "๐Ÿธ", "๐Ÿต", "๐Ÿ™ˆ", "๐Ÿ™‰", "๐Ÿ™Š", "๐Ÿ’", "๐Ÿ”", "๐Ÿง", "๐Ÿฆ", "๐Ÿค", "๐Ÿฃ", "๐Ÿฅ", "๐Ÿฆ†", "๐Ÿฆ…", "๐Ÿฆ‰", "๐Ÿฆ‡", "๐Ÿบ", "๐Ÿ—", "๐Ÿด", "๐Ÿฆ„", "๐Ÿ", "๐Ÿ›", "๐Ÿฆ‹", "๐ŸŒ", "๐Ÿš", "๐Ÿž", "๐Ÿœ", "๐Ÿ•ท", "๐Ÿ•ธ", "๐Ÿข", "๐Ÿ", "๐ŸฆŽ", "๐Ÿฆ‚", "๐Ÿฆ€", "๐Ÿฆ‘", "๐Ÿ™", "๐Ÿฆ", "๐Ÿ ", "๐ŸŸ", "๐Ÿก", "๐Ÿฌ", "๐Ÿฆˆ
@nor0x
nor0x / UICollectionView + NSFetchedResultsController.swift
Last active March 21, 2021 12:52 — forked from nazywamsiepawel/UICollectionView + NSFetchedResultsController.swift
UICollectionView + NSFetchedResultsController Swift 3 / iOS 10
var _fetchedResultsController: NSFetchedResultsController<Entity>? = nil
var blockOperations: [BlockOperation] = []
var fetchedResultController: NSFetchedResultsController<Entity> {
if _fetchedResultsController != nil {
return _fetchedResultsController!
}
let fetchRequest: NSFetchRequest<Entity> = Entity.fetchRequest()
let managedObjectContext = (UIApplication.shared.delegate as! AppDelegate).managedObjectContext!
@gerdneuman
gerdneuman / class-wc-admin-duplicate-order.php
Last active June 20, 2022 11:53
Duplicate Order functionality for WooCommerce
<?php
/**
* Duplicate order functionality
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin
* @version 2.7.0
*/
@algal
algal / ViewWrappingTableViewCell.swift
Last active February 2, 2016 12:37
Abstract UITableViewCell class for quickly defining UITableViewCell subclasses that merely wrap a custom UIView subclass
// ViewWrappingTableViewCell.swift
// Created by Alexis Gallagher on 6/4/15.
import UIKit
/**
Abstract superclass for quickly defining a `UITableViewCell` subclass that wraps a
specific `UIView` subclass. The resulting `UITableViewCell` will hug the wrapped view
with layout constraints, so that both the cell and the wrapped view can influence
@trestletech
trestletech / server.R
Last active February 2, 2022 09:47
A Shiny app combining the use of dplyr and SQLite. The goal is to demonstrate a full-fledged, database-backed user authorization framework in Shiny.
library(shiny)
library(dplyr)
library(lubridate)
# Load libraries and functions needed to create SQLite databases.
library(RSQLite)
library(RSQLite.extfuns)
saveSQLite <- function(data, name){
path <- dplyr:::db_location(filename=paste0(name, ".sqlite"))
/*
The MIT License (MIT)
Copyright (c) 2014 Ismael Celis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is