#VIM
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
| int width = 0; | |
| int height= 0; | |
| if(imageView!=null){ | |
| width = imageView.getWidth(); | |
| height = imageView.getHeight(); | |
| } | |
| loadImage(imageUrl, imageView, progressView, NO_VALUE_INTEGER, placeHolderImageId, true, listener,true,width,height); |
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/pypy | |
| import asyncore | |
| from greenlet import greenlet | |
| import socket | |
| class Scheduler(asyncore.dispatcher): | |
| def __init__(self,host,port): | |
| asyncore.dispatcher.__init__(self) | |
| self.glet = greenlet(self.routine) | |
| self.create_socket(socket.AF_INET,socket.SOCK_STREAM) |
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
| common_deps_framework = [':framework-res',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo'] | |
| common_deps_view= [':view-res',':framework',':aquery',':google-play',':volley',':adjust',':ad4push',':shouldit',':view-indicator',':hockeyapp',':holo'] | |
| common_libs = [':framework-lib1',':framework-lib2',':framework-lib3',':framework-lib4',':framework-lib5',':ad4push-lib1',':holo-lib1',':holo-lib2',':view-lib1',':view-lib2',':google-play-lib1'] | |
| android_binary( | |
| name = 'zalora', | |
| manifest = 'com.zalora.android/AndroidManifest.xml', | |
| target = 'android-18', | |
| package_type = 'release', | |
| keystore = ':debug_keystore', | |
| proguard_config = 'com.zalora.android/proguard-project.txt', |
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/python | |
| import os,argparse,sys | |
| import xml.etree.ElementTree as ET | |
| from subprocess import call,check_output | |
| import random | |
| def get_package_and_activity(folder): | |
| package = None | |
| activity = None | |
| try: |
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
| set number | |
| set ts=8 et sw=4 sts=4 | |
| colorscheme candy | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| Plugin 'fatih/vim-go' | |
| Plugin 'zhchang/quick_file' | |
| Plugin 'rosenfeld/conque-term' | |
| call vundle#end() |
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
| " Vim color file | |
| " Maintainer: Tiza | |
| " Last Change: 2002/04/28 Sun 19:35. | |
| " version: 1.0 | |
| " This color scheme uses a dark background. | |
| set background=dark | |
| hi clear | |
| if exists("syntax_on") | |
| syntax reset |
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/python | |
| import os,argparse | |
| import xml.etree.ElementTree as ET | |
| import shutil | |
| def check_project(p): | |
| if not os.path.isabs(p): | |
| p = os.path.join(os.getcwd(),p) | |
| if not os.path.isdir(p) or not os.path.isfile(os.path.join(p,'AndroidManifest.xml')): | |
| raise argparse.ArgumentTypeError('invalid project folder') |
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/python | |
| import requests | |
| import sys | |
| import os,argparse,sys | |
| import random | |
| import re | |
| def print_help(functions): | |
| l = [] | |
| l += functions |
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
| function git_prompt_info() { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}${ZSH_THEME_GIT_PROMPT_CLEAN}${ZSH_THEME_GIT_PROMPT_SUFFIX}" | |
| } |
OlderNewer