This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.codeoverdrive.util; | |
import android.graphics.Typeface; | |
import android.text.SpannableString; | |
import android.text.SpannableStringBuilder; | |
import android.text.TextPaint; | |
import android.text.style.StyleSpan; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target photoshop | |
function main(){ | |
function scanLayers(el, path, isRetina) { | |
new Folder(path).create(); | |
// process layer sets (groups) | |
for(var i = 0; i < el.layerSets.length; i++){ | |
var layer = el.layerSets[i]; | |
if (!layer.visible) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target photoshop | |
function main(){ | |
function scanLayers(el, path, isRetina) { | |
new Folder(path).create(); | |
// process layer sets (groups) | |
for(var i = 0; i < el.layerSets.length; i++){ | |
var layer = el.layerSets[i]; | |
if (!layer.visible) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target photoshop | |
function main(){ | |
if(!documents.length) | |
return; | |
// suppress all dialogs | |
app.displayDialogs = DialogModes.NO; | |
var mainDoc = app.activeDocument; | |
var docFullName = mainDoc.fullName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "API", | |
"description": "API" | |
}, | |
"schemes": [ | |
"http" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
func testFunction(completion: () -> ()) { | |
dispatch_async(dispatch_get_main_queue()) { | |
completion() | |
} | |
} | |
func testSemaphore() { | |
let semaphore = dispatch_semaphore_create(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import XCPlayground | |
enum UIImageAlignment { | |
case Center, Left, Top, Right, Bottom, TopLeft, BottomRight, BottomLeft, TopRight | |
} | |
enum UIImageScaleMode { | |
case Fill, | |
AspectFill, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Since we're dealing with dd, abort if any errors occur | |
set -e | |
TEST_FILE=${1:-dd_ibs_testfile} | |
if [ -e "$TEST_FILE" ]; then TEST_FILE_EXISTS=$?; fi | |
TEST_FILE_SIZE=134217728 | |
# Exit if file exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Since we're dealing with dd, abort if any errors occur | |
set -e | |
TEST_FILE=${1:-dd_obs_testfile} | |
TEST_FILE_EXISTS=0 | |
if [ -e "$TEST_FILE" ]; then TEST_FILE_EXISTS=1; fi | |
TEST_FILE_SIZE=134217728 |
OlderNewer