This file contains hidden or 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
public struct Constants { | |
static let sentryDSN = "${SENTRY_DSN}" | |
} |
This file contains hidden or 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
set -a | |
source $SCRIPT_INPUT_FILE_0 | |
set +a | |
export PATH="$PATH:/opt/homebrew/bin" | |
touch $SCRIPT_OUTPUT_FILE_0 | |
envsubst < $SCRIPT_INPUT_FILE_1 > $SCRIPT_OUTPUT_FILE_0 |
This file contains hidden or 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
- (void)drawRect:(CGRect)rect { | |
// Draw the gradient background | |
CGContextRef context = UIGraphicsGetCurrentContext(); | |
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceGray(); | |
// Define the shading callbacks | |
CGFunctionCallbacks callbacks = {0, blackShade, NULL}; | |
// As input to our function we want 1 value in the range [0.0, 1.0]. | |
// This is our position within the 'gradient'. |
This file contains hidden or 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
// Make sure you add #import <CommonCrypto/CommonCrypto.h> to the Xcode bridging header! | |
enum CryptoAlgorithm { | |
case MD5, SHA1, SHA224, SHA256, SHA384, SHA512 | |
var HMACAlgorithm: CCHmacAlgorithm { | |
var result: Int = 0 | |
switch self { | |
case .MD5: result = kCCHmacAlgMD5 | |
case .SHA1: result = kCCHmacAlgSHA1 |
This file contains hidden or 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
// | |
// JSSubscriptingSupport.h | |
// JernejStrasner | |
// | |
// Created by Jernej Strasner on 7/27/12. | |
// Copyright (c) 2012 JernejStrasner.com. All rights reserved. | |
// | |
// Subscripting support for iOS SDK 5.0 | |
// |
This file contains hidden or 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
#include <iostream> | |
#include <cstdlib> | |
#include <cstring> | |
#include <sys/time.h> | |
using namespace std; | |
/* | |
Funkcije | |
*/ |