Skip to content

Instantly share code, notes, and snippets.

Avatar

Sandeep Ghael sghael

  • Brookline, MA
View GitHub Profile
@sghael
sghael / ubuntu-cli-install-android-sdk.sh
Last active April 24, 2020 13:30 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
View ubuntu-cli-install-android-sdk.sh
#!/bin/bash
adduser runner
#basic stuff
apt-get install curl
apt-get install screen
apt-get install xz-utils
apt-get install git
apt-get install ping
@sghael
sghael / it.rb
Last active August 29, 2015 13:56 — forked from anonymous/it.rb
View it.rb
def it(n)
x = [*2..n]
x.each do |i|
[*(i+1)..n].each { |j| x.delete(j) if (j%i).zero? }
end
end
# 1) what does it do?
# 2) how fast is it?
# 3) can you make it faster?
@sghael
sghael / colors.xml
Created June 14, 2012 13:43
Android colors.xml
View colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="white">#FFFFFF</color>
<color name="ivory">#FFFFF0</color>
<color name="light_yellow">#FFFFE0</color>
<color name="yellow">#FFFF00</color>
<color name="snow">#FFFAFA</color>
<color name="floral_white">#FFFAF0</color>
<color name="lemon_chiffon">#FFFACD</color>
<color name="cornsilk">#FFF8DC</color>