Skip to content

Instantly share code, notes, and snippets.

View sghael's full-sized avatar

Sandeep Ghael sghael

  • Brookline, MA
View GitHub Profile
matteocrippa /
Last active October 26, 2023 05:47
Flutter Cheatsheet


A quick cheatsheet of useful snippet for Flutter


A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.


StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like:

zhy0 /
Last active November 2, 2023 13:38
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
# Thanks to
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make # NDK stuff
jasonrdsouza /
Last active June 3, 2023 17:22
Python script to efficiently concatenate S3 files
This script performs efficient concatenation of files stored in S3. Given a
folder, output location, and optional suffix, all files with the given suffix
will be concatenated into one file stored in the output location.
Concatenation is performed within S3 when possible, falling back to local
operations when necessary.
Run `python -h` for more info.
maxivak / 00.
Last active November 22, 2022 09:17
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler
View 00.
uhlenbrock / deploy.rb
Created December 14, 2011 17:36
Precompile assets locally for Capistrano deploy
View deploy.rb
load 'deploy/assets'
namespace :deploy do
namespace :assets do
desc 'Run the precompile task locally and rsync with shared'
task :precompile, :roles => :web, :except => { :no_release => true } do
%x{bundle exec rake assets:precompile}
%x{rsync --recursive --times --rsh=ssh --compress --human-readable --progress public/assets #{user}@#{host}:#{shared_path}}
%x{bundle exec rake assets:clean}
carlhoerberg / .profile
Created December 14, 2011 11:13
Bootstrap a torquebox server
View .profile
export TORQUEBOX_HOME=/opt/torquebox-current
export JRUBY_OPTS='--1.9 -J-Xmx64m'
export JAVA_OPTS='-Xmx256m -Xms32m'