Skip to content

Instantly share code, notes, and snippets.

View alexwald's full-sized avatar

Alex Wald alexwald

  • Passion makes us
  • Bratislava, SK
View GitHub Profile
@alexwald
alexwald / AWDeviceInfo.m
Last active October 8, 2018 13:56
detect notch on iPhone X, iPhone XR, iPhone XS, iPhone XS Max
//
// AWDeviceInfo.m
// DeviceTest
//
// Created by Alexander Wald on 03.10.18.
// Copyright © 2018 Alexander Wald. All rights reserved.
//
#import "AWDeviceInfo.h"
#include <sys/types.h>
let shortPath = (indexPath.section, indexPath.row)
switch shortPath {
case (0, 0):
cell.textLabel.text = "Twitter"
case (0, 1):
cell.textLabel.text = "Blog"
case (0, 2):
cell.textLabel.text = "Contact Us"
case (1, 0):
cell.textLabel.text = "nameone"
@alexwald
alexwald / PMPodfile
Created August 17, 2012 22:09
Passionmakes.us Podfile
platform :ios
pod 'A2DynamicDelegate' #Blocks are to functions as A2DynamicDelegate is to delegates.
pod 'Reachability' #ARC and GCD Compatible Reachability Class for iOS and OS X. Drop in replacement for Apple Reachability.
pod 'AFNetworking' #A delightful iOS and OS X networking framework.
pod 'AQGridView' #A grid view for iPhone/iPad, designed to look similar to NSCollectionView.
pod 'Base64' #RFC 4648 Base64 implementation in Objective-C ARC.
pod 'CustomBadge' #Draws a typical iOS badge indicator with a custom text on any view.
pod 'EGOCache' #Fast Caching for Objective-C (iPhone & Mac Compatible).
pod 'FileMD5Hash' #Library for computing MD5 hashes of files with small memory usage.
@alexwald
alexwald / homebrew.js
Created July 10, 2012 19:30
calling js libraries and linkin stuf together
// this is a single line in our form
var line = '<li class="form_line" id="line"><span><label for="item">Item: </label><input type="text" required="required" placeholder="what item is this?" id="item" name="item[]></span><span><label for="amount">Amount: </label><input required="required" type="number" id="amount" name="amount[]></span><span><label for="color">Color: </label><input type="text" required="required" class="color \{pickerClosable:true, hash:true ,pickerFaceColor:\'#ee5588\',pickerFace:3,pickerBorder:0,pickerInsetColor:\'black\'\}" id="color" name="color[]"></span></li>';
$(document).ready(function()
{
var $ul = $('#formulario'); // the UL, select it once and re-use this selection
@alexwald
alexwald / allow 32-bit applications to run in IIS
Created March 9, 2012 15:49
allow 32-bit applications to run in IIS
cscript %SystemDrive%inetpubAdminScriptsadsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1