Skip to content

Instantly share code, notes, and snippets.

Yevhenii Velizhenkov tapkain

Block or report user

Report or block tapkain

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View args.txt
These are just common sets of args. For your app, it may vary. But these should cover most of the size of the __TEXT segment
For an app with just Objective-C:
-Wl,-rename_section,__TEXT,__text,__MY_TEXT,__text
-Wl,-rename_section,__TEXT,__stubs,__MY_TEXT,__stubs
-Wl,-rename_section,__TEXT,__stub_helper,__MY_TEXT,__stub_helper
-Wl,-rename_section,__TEXT,__objc_classname,__MY_TEXT,__objc_classname
-Wl,-rename_section,__TEXT,__cstring,__MY_TEXT,__cstring
-Wl,-rename_section,__TEXT,__objc_methname,__MY_TEXT,__objc_methname
@lattner
lattner / async_swift_proposal.md
Last active Nov 11, 2019 — forked from oleganza/async_swift_proposal.md
Concrete proposal for async semantics in Swift
View async_swift_proposal.md

Async/Await for Swift

Introduction

Modern Cocoa development involves a lot of asynchronous programming using closures and completion handlers, but these APIs are hard to use. This gets particularly problematic when many asynchronous operations are used, error handling is required, or control flow between asynchronous calls gets complicated. This proposal describes a language extension to make this a lot more natural and less error prone.

This paper introduces a first class Coroutine model to Swift. Functions can opt into to being async, allowing the programmer to compose complex logic involving asynchronous operations, leaving the compiler in charge of producing the necessary closures and state machines to implement that logic.

@connorjan
connorjan / rsub.md
Last active Oct 9, 2019
Editing Files Remotely via SSH on SublimeText 3
View rsub.md

Editing Files Remotely via SSH on SublimeText 3

Sometimes you need to edit a file on a remote server, but using vim/emacs is not very practical, due to lag and speed of screen refresh.

TextMate users have the classic rmate, but it was implemented in Ruby, which may not be available on the remote server.

A better option is to use this version of rmate, implemented in pure Bash. It's a single file, self-contained, and with no external dependencies.

Step by step:

View sanfrancisco-font.css
/** WARNING - USE AT OWN RISK */
/** IT IS AGAINST APPLE'S POLICY TO USE SF PRO FOR ANYTHING OTHER THAN iOS/tvOS/macOS/watchOS DESIGN & DEVELOPMENT */
/** https://sf.abarba.me/font.css */
/** https://sf.abarba.me/LICENSE.pdf */
/** 1. Copy/import this file into your main css/scss file */
/** 2. Change css font-family: to "SF Text", "SF Display" or "SF Mono" */
/** 3. Apply font-weight or italic to html elements */
/** THANK YOU */
@cssquirrel
cssquirrel / FileUploadApiController.cs
Last active Jan 25, 2019
Using AngularJS API service and Umbraco API controller to permit users to upload files to the server
View FileUploadApiController.cs
// Use whatever namespacing works for your project.
namespace YourSite.Web.Controllers.Api
{
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
You can’t perform that action at this time.