Skip to content

Instantly share code, notes, and snippets.

LikeCoin NFT Module Spec

Created: February 17, 2022 12:12 PM

LikeCoin NFT Module Spec

Changelog

  • 2022-02-18: Initial Draft
  • 2022-03-03: Update for feedback from LikerLand: Rename query interfaces, Include ISCN version at first mint in metadata, Clarify relation to ISCN
@fcoclavero
fcoclavero / instructions.md
Created December 28, 2020 21:55
Fix Razer device not detected on macOS Big Sur 11.1

@Jandalf I recently had to reset my System Integrity Protection settings (csrutil clear) and once again ran into this issue, where my Razer device was not recognized.

I have upgraded to macOS Big Sur 11.1, and I can confirm that the solutions by @avaddon and @rdabban, which had worked for me on 11.0, no longer work.

Manually loading the kernel extension (the kextload command) will display the error code 27 "Extension with identifiers com.razer.common.razerhid not approved to load. Please approve using System Preferences.", but no pop-up or "Allow" option would appear anywhere on the System Preferences.

Adding the Razer TeamID with the /usr/sbin/spctl kext-consent add R2H967U7J8 command showed me a pop-up, but with no "Allow" option, and no option to allow the kernel extension would appear in the System Preferences, so no good.

I finally managed to make it work by temporarily disabling System Integrity Protection (SIP), as follows:

@pofat
pofat / scan_unused_selectors.swift
Created February 16, 2020 14:00
Scan unused ObjC selectors
/*
* Note: You need to build this script before use
* Usage:
* 1. Build by `swfitc scan_unused_selectors.swift`
* 2. Run by `./scan_unused_selectors /path/to/yourMachO`
*
* How to locate MachO of your APP (`/path/to/yourMachO` in above example)? In your Xcod project navigator, you can find a folder `Products`
* In that folder you can see your app (after any build) and right click on it -> "Show In Finder"
* You can get your APP's location by drag it into your terminal. Say it's "/path/to/MyApp.app", your MachO path would be "/path/to/MyApp.app/MyApp"
*/
@mistic100
mistic100 / vimeo-downloader.js
Created September 15, 2018 09:01
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active June 14, 2024 17:31
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active April 7, 2024 22:55
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@ryanolsonk
ryanolsonk / top100.csv
Created January 11, 2016 04:01
Top 100 Apps
Rank Name Bundle ID Version Min iOS Version SDK Version Uses Swift Universal App VC Based Status Bar Management Xcode Version
1 Candy Crush com.midasplayer.apps.candycrushjellysaga1 1.6.5 6 iphoneos8.0 No Universal Global 610
2 Piano Tiles 2 com.cmplay.tiles2 1.1.7 7 iphoneos9.2 No Universal Global 720
3 Messenger com.facebook.Messenger 52 7 iphoneos9.1 No Universal VC Based 710
4 Instagram com.burbn.instagram 7.13.1 7 iphoneos9.1 No iPhone Only VC Based 710
5 YouTube com.google.ios.youtube 10.49.13 7 iphoneos8.4 No Universal Global 640
6 Snapchat com.toyopagroup.picaboo 9.21.1 7 iphoneos9.0 No iPhone Only Global 701
7 Meltdown com.robtop.geometrydashmeltdown 1 6 iphoneos9.1 No Universal Global 710
8 Facebook com.facebook.Facebook 46 7 iphoneos9.1 No Universal Global 710
9 Netflix com.netflix.Netflix 7.2.4 7 iphoneos9.0 No Universal VC Based 700
@zacwest
zacwest / ios-font-sizes.swift
Last active June 17, 2024 01:38
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
Dear Sir or Madam,
It seems your web service is using the country list with the ISO3166-2 list.
It is advised to use country names in the GENC[1] standard (formly known as FIPS 10-4) to avoid controversy of Taiwan and to be able to include Kosovo.
[1] https://www.fgdc.gov/standards/news/GENC