Skip to content

Instantly share code, notes, and snippets.

View dmi3j's full-sized avatar
🎯
Focusing

Dmitrijs Beloborodovs dmi3j

🎯
Focusing
  • Riga, Latvia
  • 08:12 (UTC +03:00)
  • X @dmi3j
View GitHub Profile
@xtabbas
xtabbas / SnapCarousel.swift
Created May 10, 2020 18:13
A carousel that snap items in place build on top of SwiftUI
//
// SnapCarousel.swift
// prototype5
//
// Created by xtabbas on 5/7/20.
// Copyright © 2020 xtadevs. All rights reserved.
//
import SwiftUI
@egcode
egcode / push.sh
Last active August 21, 2020 09:19
push notification curl
#!/bin/bash
# to execute it first chmod +x push.sh
deviceToken=<device token id from device did receive token>
authKey="./AuthKey_<auth_key>.p8"
authKeyId=<auth_key>
teamId=<team id>
bundleId=<bundle id>
endpoint=https://api.development.push.apple.com
@foozmeat
foozmeat / openssl-build.sh
Last active May 22, 2024 17:56
A shell script to build openssl for iOS and Mac. It currently builds: Mac -> i386 & x86_64 // iOS -> armv7, arm64 // iOS Simulator -> i386 & x86_64.
#!/bin/bash
# This script builds the iOS and Mac openSSL libraries
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh
@mrkschan
mrkschan / pre-commit
Created June 16, 2011 06:38
a pre-commit hook for git to remove trailing whitespace
#!/bin/sh
#
# A git hook script to find and fix trailing whitespace
# in your commits. Bypass it with the --no-verify option
# to git-commit
# Ref - http://is.gd/PerowD
#
if git rev-parse --verify HEAD >/dev/null 2>&1
then