android:clickable="true"
android:background="?attr/selectableItemBackground"
or
import math | |
import os | |
import urllib | |
from shapely.geometry import Polygon | |
def deg2num(lat_deg, lon_deg, zoom): | |
lat_rad = math.radians(lat_deg) | |
n = 2.0 ** zoom | |
xtile = int((lon_deg + 180.0) / 360.0 * n) | |
ytile = int((1.0 - math.log(math.tan(lat_rad) + (1 / math.cos(lat_rad))) / math.pi) / 2.0 * n) |
/***************************************************************** | |
* | |
* Copy Layer text 1.0 - by Praveen Vijayan! - http://www.decodize.com/ | |
* | |
* Compatibility above Photoshop CS6 | |
* | |
* Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/ | |
* | |
*****************************************************************/ | |
var docRef = app.activeDocument; | |
cTID = function(s) { return app.charIDToTypeID(s); }; | |
sTID = function(s) { return app.stringIDToTypeID(s); }; | |
function newGroupFromLayers(doc) { | |
var desc = new ActionDescriptor(); | |
var ref = new ActionReference(); | |
ref.putClass( sTID('layerSection') ); |
import c4d | |
from c4d.modules import mograph as mo | |
prevCnt = 0 | |
def main(): | |
global prevCnt | |
md = mo.GeGetMoData(op) | |
if md==None: return False |
#!/usr/bin/env bash | |
#mkvpropedit to edit the video file title metadata (mkv files) | |
for f in *.mkv; do mkvpropedit "$f" --edit info --set "title=${f%.mkv}"; done |
#!/usr/bin/env python | |
# Python to Mel converter | |
# Allows running of Python code by dragging into the Maya viewport | |
# Created 21/04/2015 | |
# Jason Dixon | |
# [email protected] | |
# internetimagery.com | |
# Usage |
#target photoshop | |
// https://gist.github.com/joonaspaakko/347c270f15bc1d11efe9 | |
var colors = [ "#0033ff", "#9a3838", "#888888", "#a6ad1e" ]; | |
function init() { | |
var read = tempFile.read(), | |
color = colors[ read ]; |
public sealed class Snackbar : UIView | |
{ | |
public TimeSpan Duration { get; set; } | |
public Action<Snackbar> OnAction { get; set; } | |
public Action<Snackbar> OnDismiss { get; set; } | |
private static Snackbar _currentlyVisibleSnackbar; | |
private readonly UILabel _messageLabel; | |
private readonly UIButton _actionButton; | |
private readonly UIView _separator; | |
private NSLayoutConstraint[] _horizontalLayoutConstraints; |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
// using System.Timers; | |
using Xamarin.Forms; | |
namespace ....Core.Control | |
{ | |
public class CarouselLayout : ScrollView, IDisposable |