Skip to content

Instantly share code, notes, and snippets.

View sgioia9's full-sized avatar
🏠
Working from home

Stefano Gioia sgioia9

🏠
Working from home
View GitHub Profile
@agrcrobles
agrcrobles / android_instructions_29.md
Last active June 2, 2024 05:54 — forked from patrickhammond/android_instructions.md
Setup Android SDK on OSX with and without the android studio

Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.

A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.

Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.

Prerequisites:

https://github.com/shyiko/jabba instead ?

@oseiskar
oseiskar / swagger-yaml-to-html.py
Last active April 30, 2024 10:57
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
#!/usr/bin/python
#
# Copyright 2017 Otto Seiskari
# Licensed under the Apache License, Version 2.0.
# See http://www.apache.org/licenses/LICENSE-2.0 for the full text.
#
# This file is based on
# https://github.com/swagger-api/swagger-ui/blob/4f1772f6544699bc748299bd65f7ae2112777abc/dist/index.html
# (Copyright 2017 SmartBear Software, Licensed under Apache 2.0)
#
@glinesbdev
glinesbdev / Nav.elm
Created October 4, 2016 02:28
Default Bootstrap Navbar in Elm
module Nav exposing (..)
import Html exposing (Html, div, a, span, i, ul, li, nav, button, text, form, input, header)
import Html.Attributes exposing (class, id, href, placeholder, attribute, type')
navbar : Html msg -> Html msg
navbar links =
header []
[ nav [ class "navbar navbar-default" ]
@shobhit6993
shobhit6993 / segTree_lazy_sum2.cpp
Created October 25, 2013 03:59
Another implementation of segment tree with lazy propagation with sum of intervals operation
#include <cstdio>
#include <iostream>
#include <string.h>
using namespace std;
#define l(n) 2*n
#define r(n) 2*n+1
@shobhit6993
shobhit6993 / segmentTree_lazy_sum.cpp
Created October 25, 2013 03:45
Segment tree with lazy propagation for sum of intervals operation.
#include <iostream>
#include <string>
#include <limits>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
@manfe
manfe / _some_field.html.haml
Created September 11, 2012 20:24
Creating <optgroup> in select fields using simple_form
= f.association :cities, :collection => State.all, :as => :grouped_select,
:group_method => :cities, :group_label_method => :name
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 24, 2024 17:56
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname