Skip to content

Instantly share code, notes, and snippets.

View ariedov's full-sized avatar
🇺🇦

David Leibovych ariedov

🇺🇦
View GitHub Profile
@ariedov
ariedov / colors.xml
Last active December 25, 2015 10:39
w3c android colors
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="white">#FFFFFF</color>
<color name="yellow">#FFFF00</color>
<color name="fuchsia">#FF00FF</color>
<color name="red">#FF0000</color>
<color name="silver">#C0C0C0</color>
<color name="gray">#808080</color>
<color name="olive">#808000</color>
<color name="purple">#800080</color>
@ariedov
ariedov / gist:5016065
Created February 22, 2013 19:49
Read an integer from console.
BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(bufferRead.readLine().trim());
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
<!--
For other language: Instead of `ace/mode/ruby`, Use
Markdown -> `ace/mode/markdown`
Python -> `ace/mode/python`
C/C++ -> `ace/mode/c_cpp`
Javscript -> `ace/mode/javascript`