Skip to content

Instantly share code, notes, and snippets.

@fei-ke
fei-ke / eclipse.xml
Created August 7, 2014 01:31
Eclipse color scheme for IntelliJ IDEA from http://return0x0000.blogspot.com/2009/02/eclipse-color-scheme-for-intellij-idea.html path /home/{your_account_name}/.IntelliJIdea{your_version}/config/colors Just save it like eclipse.icls
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="eclipse" version="124" parent_scheme="Default">
<option name="LINE_SPACING" value="1.2" />
<option name="EDITOR_FONT_SIZE" value="15" />
<option name="CONSOLE_FONT_NAME" value="Courier New" />
<option name="CONSOLE_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="CARET_ROW_COLOR" value="e8f2fe" />
</colors>
/*
* Copyright (C) 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
public EdgeEffect(Context context) {
final Resources res = context.getResources();
mEdge = res.getDrawable(R.drawable.overscroll_edge);
mGlow = res.getDrawable(R.drawable.overscroll_glow);
@fei-ke
fei-ke / 0_reuse_code.js
Created October 16, 2013 07:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
xrandr --addmode VGA1 "1368x768_60.00"
xrandr --output LVDS1 --mode 1366x768
xrandr --output VGA1 --mode "1368x768_60.00" --left-of LVDS1