This file contains 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
d=window.get_active_document();s,e=d.get_selection_bounds();t=d.get_text(s,e,True);d.delete_selection(False,False);d.insert_at_cursor(''.join(("<?=_('",t,"')?>"))) |
This file contains 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
/** | |
* | |
* It's under MPL 1.1 | |
* See http://www.mozilla.org/MPL/1.1/ | |
* You can install this from https://addons.mozilla.org/ko/firefox/addon/naver-endic/ | |
* | |
*/ | |
let { Ci, Cc } = require("chrome"); | |
let Panel = require("panel").Panel; |
This file contains 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
CookieManager cookieManager = CookieManager.getInstance(); | |
BasicCookieStore cookieStore = new BasicCookieStore(); | |
final String appDomain = mContext.getResources().getString(R.string.app_domain); | |
String cookies = cookieManager.getCookie(appDomain); | |
String[] splitCookies = cookies.split(";"); | |
for (String cookie : splitCookies) { | |
String[] cookieParts = cookie.split("="); | |
if (cookieParts.length > 0) { | |
String cookieValue = ""; | |
if (cookieParts.length >= 2) { |
This file contains 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
compile_and_link: x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc.so | |
/bin/sh: line 1: 12528 죽었음 x86_64-unknown-linux-gnu/stage0/bin/rustc --cfg stage0 -O --target=x86_64-unknown-linux-gnu -o x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc.so /home/khris/builds/rust/src/rust-0.5/src/librustc/rustc.rc | |
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustc/x86_64-unknown-linux-gnu/lib/librustc.so] 오류 137 | |
==> ERROR: A failure occurred in build(). | |
Aborting... |
This file contains 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
/** | |
**CAUTION** | |
This boilerplate code is useless at least about importing dependencies for | |
support libraries and Google service libraries. See | |
[this post](https://plus.google.com/u/0/+AndroidDevelopers/posts/4Yhpn6p9icf). | |
But it is useful for 3rd party libraries that doesn't `aar` yet. |
This file contains 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 onOpen() { | |
var sheet = SpreadsheetApp.getActive(); | |
var menuItems = [ | |
{name: 'Add issues...', functionName: 'addIssues'} | |
]; | |
sheet.addMenu('GitHub', menuItems); | |
} | |
function addIssues() { | |
var re = /^\[?.*\]?\s*(.*)$/; |
This file contains 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
/** | |
* Original: https://github.com/twitter/hbc/blob/master/hbc-core/src/main/java/com/twitter/hbc/httpclient/auth/OAuth1.java | |
* | |
* It is compatible with scala-less joauth 6.0.+, but hbc is not | |
* compatible with Android. #EpicFail | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
**/ | |
/** |
This file contains 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
View decorView = getWindow().getDecorView(); | |
int actionBarViewId = decorView.getContext().getResources().getIdentifier("android:id/action_bar", null, null); | |
View actionBarView = getWindow().getDecorView().findViewById(actionBarViewId); | |
actionBarView.setClickable(true); | |
actionBarView.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
Toast.makeText(v.getContext(), "ActionBar is clicked", Toast.LENGTH_LONG).show(); | |
} | |
}); |
This file contains 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
OAUTH_TOKEN = '<YOUR ACCESS TOKEN>' | |
OAUTH_SECRET = '<YOUR ACCESS TOKEN SECRET>' | |
CONSUMER_KEY = '<YOUR API KEY>' | |
CONSUMER_SECRET = '<YOUR API SECRET>' | |
# seconds | |
INTERVAL = 30 |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
... | |
package="net.tekhnokracy.intentredirect.app" | |
... > | |
<application ... > | |
<activity | |
android:name="net.tekhnokracy.intentredirect.app.DummyActivity" | |
android:exported="false" > | |
<intent-filter> |
OlderNewer