Skip to content

Instantly share code, notes, and snippets.

View O1derman's full-sized avatar
🐢
Yo

Oldrich Janousek O1derman

🐢
Yo
View GitHub Profile
@iexa
iexa / python-with-tcl.rb
Last active October 22, 2024 12:40
MacOS homebrew python 3.8.6 with tcl-tk (properly)
class Python < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org/"
url "https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz"
sha256 "a9e0b79d27aa056eb9cce8d63a427b5f9bab1465dee3f942dcfdb25a82f4ab8a"
head "https://github.com/python/cpython.git"
license "Python-2.0"
revision 1
bottle do
@moltak
moltak / expandablelistview_oncreate.java
Created April 11, 2014 11:05
ExpandableListView in Scrollview
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.expandable, container, false);
ExpandableAdapter adapter = new ExpandableAdapter();
expandableListView.setAdapter(adapter);
setExpandableListViewHeight(expandableListView, -1);
expandableListView.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {
@Override
public boolean onGroupClick(ExpandableListView parent, View v, int position, long id) {
@vishesh
vishesh / listop.ss
Created November 13, 2011 23:41
Some common operation on Scheme List structure
(define (delete-n list n)
(if (= n 0)
(cdr list)
(cons (car list) (delete-n (cdr list) (- n 1)))))
(define (insert-n list item n)
(if (= n 0)
(cons item list)
(cons (car list) (insert-n (cdr list) item (- n 1)))))