This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f "/opt/swift/bin/swift" ]; then | |
echo ====== Swift is already installed at /opt/swift, exiting! | |
exit 1 | |
fi | |
for i in "$@" | |
do | |
case $i in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import CommonCrypto | |
extension Data { | |
enum Algorithm { | |
case md5 | |
case sha1 | |
case sha224 | |
case sha256 | |
case sha384 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swift package generate-xcodeproj --xcconfig-overrides ./Sources/ios.xcconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# xcode-icon-tag.sh | |
# The MIT License (MIT) | |
# | |
# Copyright (c) <2015> <Valerio Mazzeo> | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import pickle | |
from collections import defaultdict | |
from collections import OrderedDict | |
import sys | |
def checkDict(inputData): | |
return (type(inputData) == dict or type(inputData) == defaultdict\ | |
or type(inputData) == OrderedDict) |