Skip to content

Instantly share code, notes, and snippets.

View sengopal's full-sized avatar
🎧
Focusing

Senthilkumar Gopal sengopal

🎧
Focusing
View GitHub Profile
@fordaz
fordaz / ffmpeg-concat.sh
Last active January 9, 2017 12:42
concat multiple mp4 into a single one, extract audio as mp3
#!/bin/bash
# default group size (no grouping)
group_size=-1
# required to deal with file names containing blanks
OIFS="$IFS"
IFS=$'\n'
# parsing the -g command line argument
@bsweger
bsweger / useful_pandas_snippets.md
Last active October 6, 2025 13:44
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@staltz
staltz / introrx.md
Last active October 26, 2025 03:06
The introduction to Reactive Programming you've been missing
@rahulsom
rahulsom / README.md
Last active January 24, 2020 18:17
Translate text to all languages

Run Translations with your Message.

groovy Translations.groovy "Welcome\!"

Then point your browser to http://localhost:8000/.

You get something like this: Image

@temoto
temoto / helpers_data.py
Last active September 10, 2024 20:12
Part of py-helpers. Gzip compression shortcuts. Encoding. Database helpers. Retry decorator.
def namedlist(typename, field_names):
"""Returns a new subclass of list with named fields.
>>> Point = namedlist('Point', ('x', 'y'))
>>> Point.__doc__ # docstring for the new class
'Point(x, y)'
>>> p = Point(11, y=22) # instantiate with positional args or keywords
>>> p[0] + p[1] # indexable like a plain list
33
>>> x, y = p # unpack like a regular list
@outbounder
outbounder / ClientHelper.java
Created July 7, 2011 13:08
jersey client helper for trusting all certificates in SSL/TLS
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;