Generates PDF from man page and opens it within Preview.app.
curl -o /usr/local/bin/pman https://gist.githubusercontent.com/AlexDenisov/4294335/raw/9fe40c81f6fc94760e81040d2636d0e703fc676f/pman.pl
chmod +x /usr/local/bin/pman
| #define MSDesignatedInitializer(__SEL__) __attribute__((unavailable("Invoke the designated initializer `" # __SEL__ "` instead."))) | |
| // Sample usage: | |
| - (instancetype)initWithObject:(id)object; | |
| - (instancetype)init MSDesignatedInitializer(initWithObject:); // <- This even gets auto-complete. | |
| // Now calling init on this class would throw a warning. |
| --- | |
| language: objective-c | |
| before_script: | |
| - ./scripts/travis/add-key.sh | |
| after_script: | |
| - ./scripts/travis/remove-key.sh | |
| after_success: | |
| - ./scripts/travis/testflight.sh | |
| env: | |
| global: |
| require 'xcodeproj' | |
| project = Xcodeproj::Project.new 'SomeProject.xcodeproj' | |
| target = project.targets.last | |
| build_phase = target.source_build_phase | |
| files = build_phase.files | |
| settings = { 'COMPILER_FLAGS' => '-fno-objc-arc' } | |
| files.each do |f| | |
| if f.display_name =~ /Spec/ | |
| if f.settings |
| // | |
| // ConformsTo.h | |
| // | |
| // Created by Alex Denisov on 01.03.13. | |
| // | |
| #pragma once | |
| #import <Foundation/Foundation.h> | |
| #import <Cedar-iOS/Cedar-iOS.h> |
| // | |
| // UIDevice+DeviceHardware.h | |
| // | |
| // Used to determine EXACT version of device software is running on. | |
| #import <Foundation/Foundation.h> | |
| #include <sys/types.h> | |
| #include <sys/sysctl.h> | |
| typedef enum { |
| use List::MoreUtils qw( each_array ); | |
| my @first = qw( foo bar buzz ); | |
| my @second = (1, 2, 3); | |
| my $it = each_array( @first, @second ); | |
| while ( my ($f, $s) = $it->() ) { | |
| print "$f = $s\n"; | |
| } |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/d3-collapsible-tree |
| alias subadd="svn st | grep '^?' | sed 's/^? *\(.*\)/\"\1\"/g' | sed 's/@\(.*\)/@\1@/g' | xargs svn add" | |
| alias subrm="svn st | grep '^!' | sed 's/^! *\(.*\)/\"\1\"/g' | sed 's/@\(.*\)/@\1@/g' | xargs svn rm" | |
| alias subst='svn st' | |
| alias subci='svn ci' | |
| alias subup='svn up' |
| {"UIDeviceFamily":[1,2]} |