###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
| var generateShortLink = function(space, value) { | |
| if (typeof value === 'number') { | |
| var result = ''; | |
| do { | |
| result = space[value % space.length] + result; | |
| value = Math.floor(value / space.length); | |
| } while (value > 0) | |
| } else if (typeof value === 'string') { | |
| var result = 0; | |
| for (var i = 0; i < value.length; ++i) { |
| public Drawable getAPKDrawable(String filePath) { | |
| Drawable dr = null; | |
| if (filePath != null) { | |
| String PATH_PackageParser = "android.content.pm.PackageParser"; | |
| String PATH_AssetManager = "android.content.res.AssetManager"; | |
| try { | |
| Class pkgParserCls = Class.forName(PATH_PackageParser); | |
| Class[] typeArgs = new Class[1]; |
| var nightCss = 'html,body,div,span,applet,object,' | |
| + 'h1,h2,h3,h4,h5,h6,p,blockquote,' | |
| + 'pre,abbr,acronym,address,big,cite,' | |
| + 'code,del,dfn,em,font,img,ins,kbd,' | |
| + 'q,s,samp,small,strike,strong,sub,' | |
| + 'sup,tt,var,b,u,i,center,dl,dt,dd,' | |
| + 'ol,ul,li,fieldset,form,label,' | |
| + 'legend,table,caption,tbody,tfoot,thead,th,td' | |
| + '{background:#333333 !important;' | |
| + 'color:#A0A0A0 !important;' |
| // retrieve and log bookmarks | |
| Cursor results; | |
| String[] proj = new String[] | |
| { | |
| android.provider.BaseColumns._ID, | |
| android.provider.Browser.BookmarkColumns.URL, | |
| android.provider.Browser.BookmarkColumns.TITLE | |
| }; | |
| // other columns available: http://developer.android.com/reference/android/provider/Browser.BookmarkColumns.html | |
| results = managedQuery(android.provider.Browser.BOOKMARKS_URI, proj, |
| package com.ilegendsoft.app; | |
| import java.io.UnsupportedEncodingException; | |
| import java.security.InvalidKeyException; | |
| import java.security.NoSuchAlgorithmException; | |
| import javax.crypto.Mac; | |
| import javax.crypto.spec.SecretKeySpec; | |
| public class Main { |
| <a href="merc://www.baidu.com">merc://www.baidu.com</a> |
| private let sharedInstance = MyManager() | |
| class MyManager { | |
| class var sharedManager : MyManager { | |
| return sharedInstance | |
| } | |
| } |
| case 'POST': | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_POST, 1); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | |
| curl_setopt($ch, CURLOPT_TIMEOUT, '10'); | |
| $headers = array(); |
| xcodebuild -exportArchive -exportFormat ipa -archivePath {PATH}/MyApp.xcarchive -exportPath ~/Desktop/MyApp.ipa |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com