Skip to content

Instantly share code, notes, and snippets.

View LongClipeus's full-sized avatar
:atom:
Focusing

Long Le Van LongClipeus

:atom:
Focusing
View GitHub Profile
@cormullion
cormullion / pi-day-draw-pi-with-circles.jl
Last active December 30, 2018 17:59
pi-day-draw-pi-with-circles.jl
using Luxor
# drawing pi with circles, rather than drawing circles with pi
function perimeterize(s, n)
# center it
te = textextents(s)
move(-te[3]/2, te[4]/2)
textpath(s)
p = pathtopoly()[1]
@filipelenfers
filipelenfers / installJdkTarGzUbuntu.sh
Last active April 22, 2024 02:02
Install JDK from tar.gz Ubuntu
#Login as root
sudo su
#create jdk directory
mkdir /opt/jdk
#uncompress, change to your file name
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk
#check if files are there
@teocci
teocci / compile_ffmpeg.md
Last active December 18, 2022 00:15
Compile FFmpeg on Ubuntu 16.04

Compile FFmpeg on Ubuntu

This basic guide supports Ubuntu Xenial Xerus 16.04 and will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide][1].

Note: Copy and paste the whole code box for each step.

Preparation

@danielgomezrico
danielgomezrico / EditText.xml
Created April 23, 2015 04:30
Android - EditText disabled but clickable
<EditText ...
android:clickable="true"
android:cursorVisible="false"
android:focusable="false"/>