Skip to content

Instantly share code, notes, and snippets.

View noppefoxwolf's full-sized avatar
🦊
きつねかわいい!!!

noppe noppefoxwolf

🦊
きつねかわいい!!!
View GitHub Profile
@jacobbubu
jacobbubu / ioslocaleidentifiers.csv
Created February 15, 2012 14:41
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@uakihir0
uakihir0 / gist:4481432
Created January 8, 2013 05:17
TheWorld のテーマ設定で用いられているカラー暗号化の仕組みのコードです。 いつか、JSか何かでWebで綺麗に再現できるような支援機構を作ります。
// We Cannot Use "{" & "}" & ","
static NSString *_IndList[300] = {
@"⠀", @"⠁", @"⠂", @"⠃", @"⠄", @"⠅", @"⠆", @"⠇", @"⠈", @"⠉",
@"⠊", @"⠋", @"⠌", @"⠍", @"⠎", @"⠏", @"⠐", @"⠑", @"⠒", @"⠓",
@"⠔", @"⠕", @"⠖", @"⠗", @"⠘", @"⠙", @"⠚", @"⠛", @"⠜", @"⠝",
@"⠞", @"⠟",
@"⠠", @"⠡", @"⠢", @"⠣", @"⠤", @"⠥", @"⠦", @"⠧", @"⠨", @"⠩",
@kyokomi
kyokomi / goxorm_memo.md
Created July 28, 2014 21:19
go-xormを使ってみたメモ
@lawrencelomax
lawrencelomax / DYLD_INSERT_LIBRARIES Simulator Kernel Protection.md
Last active May 10, 2018 16:36
deny-mmap for DYLD_INSERT_LIBRARIES on Simulator Process

It looks like the Simulator.app binary is now signed as of Xcode 7 as the following occurs in instruments-without-delay when using the build script:

./build.sh test <SIMULATOR-UDID>

The message that we get from the kernel is: 7/23/15 12:22:52.000 PM kernel[0]: AMFI: Simulator(pid 72600) - [deny-mmap] mapped file has no team identifier and is not a platform binary: /Users/lawrencelomax/src/instruments-without-delay/build/SimShim.dylib

This causes a crash:

@voluntas
voluntas / webrtc_sfu_dev.rst
Last active April 24, 2025 12:04
WebRTC SFU コトハジメ

WebRTC SFU コトハジメ

日時:2023-12-03
作:voluntas
バージョン:2023.1
url:https://voluntas.github.io

この記事が良いと思ったらこの記事に Star をお願いします

@karlding
karlding / itunes-artist-photos.md
Created March 3, 2016 05:17
Grab iTunes image artwork from the DOM using the Open Graph meta tags

iTunes Artist Photos

The iTunes API doesn't provide a way to grab artist images, but the iTunes website uses Open Graph meta tags, which embeds a meta tag with a property attribute value set to og:image. As it turns out, this seems to be the same image used in the iTunes artwork.

The URL structure is similar to the artworkUrl values returned by the API, but what concerns us here is the part I've indicated at the end of the URL.

http://is3.mzstatic.com/image/thumb/Music7/v4/68/68/41/68684190-833b-bfb4-5018-e5a2e6f69eb0/source/1200x630bf.jpg
                                                                                                   └─ widthxheight
@j-j-m
j-j-m / commonprofile.metal
Created May 8, 2017 00:20
Can't access GL Uniforms in Metal shader modifier? Apple docs for SCNShadable written in terms of GL? Pulling your hair out?... this will help.
////////////////////////////////////////////////
// CommonProfile Shader v2
#import <metal_stdlib>
using namespace metal;
#ifndef __SCNMetalDefines__
#define __SCNMetalDefines__
@andrewzimmer906
andrewzimmer906 / commonprofile.metal
Last active August 29, 2023 20:11 — forked from j-j-m/commonprofile.metal
Can't access GL Uniforms in Metal shader modifier? Apple docs for SCNShadable written in terms of GL? Pulling your hair out?... this will help.
////////////////////////////////////////////////
// CommonProfile Shader v2
#import <metal_stdlib>
using namespace metal;
#ifndef __SCNMetalDefines__
#define __SCNMetalDefines__
protocol Animal {
func foo() -> Int
}
struct Cat: Animal {
var value: Int = 42
func foo() -> Int { return value }
}
func useAnimal(_ animal: Animal) -> Int {
import UIKit
final class KeepingContentOffsetCollectionViewLayout : UICollectionViewFlowLayout {
private var oldOffset: CGFloat?
typealias Completion = () -> Void
/// Perform passed closure with keeping current contentOffset.
///