Skip to content

Instantly share code, notes, and snippets.

View calintamas's full-sized avatar

Calin Tamas calintamas

View GitHub Profile
@calintamas
calintamas / LLM.md
Created April 19, 2023 19:31 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@calintamas
calintamas / city.sh
Created November 3, 2020 08:34
city by ip
curl https://ipinfo.io/city -s
@calintamas
calintamas / devicetoken.m
Created November 12, 2019 10:40
print device token iOS 13
NSUInteger length = deviceToken.length;
const unsigned char *buffer = deviceToken.bytes;
NSMutableString *hexString = [NSMutableString stringWithCapacity:(length * 2)];
for (int i = 0; i < length; ++i) {
[hexString appendFormat:@"%02x", buffer[i]];
}
NSLog(@"device token %@", hexString);

install/update cocoapods

sudo gem install cocoapods

@calintamas
calintamas / caches.md
Last active November 1, 2019 16:18
caches

spotify

~/Library/Caches/com.spotify.client/Data

remove unavailable simulators

xcrun simctl delete unavailable

xcode archives

~/Library/Developer/Xcode/Archives

watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro* && rm -rf $TMPDIR/haste-*

rm -rf ~/.rncache

rm -rf ~/Library/Caches/com.facebook.ReactNativeBuild // from RN 0.59

rm -rf ~/Library/Developer/Xcode/DerivedData/*

rm -rf ~/Library/Caches/CocoaPod

@calintamas
calintamas / RNfontWeights.js
Created July 13, 2018 08:16 — forked from knowbody/RNfontWeights.js
React Native Font Weight Cheatsheet iOS
{ fontWeight: '100' }, // Thin
{ fontWeight: '200' }, // Ultra Light
{ fontWeight: '300' }, // Light
{ fontWeight: '400' }, // Regular
{ fontWeight: '500' }, // Medium
{ fontWeight: '600' }, // Semibold
{ fontWeight: '700' }, // Bold
{ fontWeight: '800' }, // Heavy
{ fontWeight: '900' }, // Black