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
// ==UserScript== | |
// @name Feedly - Open entry in background | |
// @description Adds 'h' as a hotkey to open selected entry in background tab | |
// @namespace userscripts.org/users/Lyk | |
// @author Lyk | |
// @include http://feedly.com/* | |
// @include https://feedly.com/* | |
// @include http://*.feedly.com/* | |
// @include https://*.feedly.com/* | |
// @grant GM_openInTab |
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
cd .. | |
env -i git checkout HEAD -- package.json | |
env -i git checkout HEAD -- bower.json | |
env npm install | |
env bower install | |
env -i git reset --hard | |
env grunt |
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
#!/bin/bash | |
for ENCODING in "gbk" "utf-8" "ucs-2" | |
do | |
(iconv -f $ENCODING -t utf-8 "$1" 1>/dev/null 2>&1) && iconv -f $ENCODING -t utf-8 "$1" && exit 0 | |
done | |
echo >&2 "[ERROR] Unknown Characterset \"" "$1" "\"" |
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
update: | |
@git pull | |
assemble: | |
@./gradlew clean :${MODULE}:assembleDebug :${MODULE}:assembleRelease && ./projection ${MODULE} "${VERSION}" |
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
#!/bin/sh | |
#################################################################### | |
# Channel distribution builder script | |
# Dependency: | |
# apktool 2.x | |
# Android SDK & Build Tools | |
# Usage: | |
# distchannel <apk file> <channel configuration> <output path> | |
# Environment Variable: |
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 android.app.Application; | |
import com.octo.android.robospice.persistence.exception.CacheCreationException; | |
import com.octo.android.robospice.persistence.exception.CacheLoadingException; | |
import com.octo.android.robospice.persistence.exception.CacheSavingException; | |
import com.octo.android.robospice.persistence.file.InFileObjectPersister; | |
import java.io.File; |
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 python | |
#-*- coding: utf-8 -*- | |
import os | |
import StringIO | |
import zipfile | |
import sys | |
from reportlab.pdfgen import canvas | |
from reportlab.lib.utils import ImageReader | |
from pyPdf import pdf |
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 python | |
#-*- coding: utf-8 -*- | |
from pyquery import PyQuery as pq | |
from urllib import urlretrieve | |
from threading import Thread | |
import sys, os | |
import argparse | |
parser = argparse.ArgumentParser( |
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
@Override | |
public void startActivityForResult(Intent intent, int requestCode) { | |
if (getParentFragment() != null) { | |
getParentFragment().startActivityForResult(intent, requestCode); | |
} else { | |
super.startActivityForResult(intent, requestCode); | |
} | |
} |
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
############## | |
# BUILD TOOL # | |
############## | |
BABEL = node_modules/.bin/babel | |
BABEL_FLAGS = --stage 1 | |
BUNDLER = node_modules/.bin/browserify | |
BUNDLER_FLAGS = | |
BUNDLER_TRANS = -t [ babelify $(BABEL_FLAGS) ] |