Skip to content

Instantly share code, notes, and snippets.

View skizzo's full-sized avatar
🎯
Focusing

Stephan Müller skizzo

🎯
Focusing
  • nerdybirdy
  • Barcelona
View GitHub Profile
@skizzo
skizzo / yoursite.html
Created November 30, 2021 11:39
iazzu embedding test
<iframe src="https://iazzu.com/g/YOUR-PROFILE-NAME?embed=true" width="100%" height="100vh"></iframe>
@skizzo
skizzo / cleanup.sh
Created September 28, 2017 09:58
Shell script for cleaning a React Native project
watchman watch-del-all 1>/dev/null
rm -rf node_modules 1>/dev/null
rm -rf yarn.lock 1>/dev/null
rm -rf package-lock.json 1>/dev/null
rm -rf $TMPDIR/react-packager-* 1>/dev/null
rm -rf ios/build 1>/dev/null
npm cache clear --force -s 1>/dev/null
npm cache verify 1>/dev/null
@skizzo
skizzo / 0_reuse_code.js
Created September 26, 2017 17:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@skizzo
skizzo / helper.php
Last active September 26, 2017 18:00
curl function used for FRApp
function callFunctionCURL ($url, $params = [], $method = "GET") { // url WITHOUT trailing slash please
if (mb_strtolower ($method) == "get") {
if (count($params) > 0)
$url = $url."?".http_build_query ($params);
$ch = curl_init ($url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
@skizzo
skizzo / PrintInstalledFonts.mm
Last active September 20, 2017 01:48
Determine & print installed fonts (iOS)
// Prints all installed/available fonts for iOS devices
for (NSString *familyName in [UIFont familyNames]){
NSLog(@"Family name: %@", familyName);
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {
NSLog(@"--Font name: %@", fontName); // <-- use fontName string for fontFamily style value
}
}