Skip to content

Instantly share code, notes, and snippets.

@ealeksandrov
ealeksandrov / String+MarkdownLinks.swift
Created December 31, 2018 00:23
Extension to convert markdown String to NSAttributedString with links ready to use in UITextView

Keybase proof

I hereby claim:

  • I am ealeksandrov on github.
  • I am ealeksandrov (https://keybase.io/ealeksandrov) on keybase.
  • I have a public key ASBET7ckYKqMzbVaku2p7WSBU5g1gvMgyNYAVnEa4FbT6go

To claim this, I am signing this object:

#!/bin/sh
# mogen.sh
#
# Created by Jean-Denis Muys on 24/02/11.
# Modified by Ryan Rounkles on 15/5/11 to use correct model version and to account for spaces in file paths
# Modified by Vyacheslav Artemev on 7/12/11 to use separate folders for machine and human
# Modified by Evgeny Aleksandrov on 13/04/13 to use ARC
# baseClass = DOManagedObject
# --base-class $baseClass
@ealeksandrov
ealeksandrov / iconVersioning.sh
Created February 27, 2016 13:18
Icon overlaying script
#!/bin/sh
export PATH=/opt/local/bin/:/opt/local/sbin:$PATH:/usr/local/bin:
convertPath=`which convert`
echo ${convertPath}
if [[ ! -f ${convertPath} || -z ${convertPath} ]]; then
echo "WARNING: Skipping Icon versioning, you need to install ImageMagick, you can use brew to simplify process:
brew install imagemagick"
exit 0;
fi
@ealeksandrov
ealeksandrov / crawler.js
Created April 24, 2015 19:39
Web API crawler on node.js
var Q = require('q');
var request = Q.denodeify(require('request'));
var domain = "http://challenge.shopcurbside.com/";
var localSessionId;
function getSession() {
var response = request({
uri: domain + 'get-session',
method: 'GET'
@ealeksandrov
ealeksandrov / main.m
Created November 8, 2014 10:27
Objective-C Minimalism
#!/usr/bin/env objc-run
@import Foundation;
@implementation Hello : NSObject
- (void) sayHelloTo:name
{
printf("Hello %s, my address is %p\n", [name UTF8String], self);
}
@end
@ealeksandrov
ealeksandrov / upload-testflight.sh
Last active December 18, 2015 15:59
TestFlight autoupload script
#!/bin/bash
#
# upload-testflight.sh
#
# Created by Justin Miller. Edited by Evgeny Aleksandrov.
API_TOKEN="APP_TOKEN_HERE"
TEAM_TOKEN="TEAM_TOKEN_HERE"
PROVISIONING_PROFILE_NAME="PROVISION_NAME_HERE"