Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
We're not flawless, we're a work in progress

Jakub Młokosiewicz hckr

🐧
We're not flawless, we're a work in progress
View GitHub Profile
@zmilonas
zmilonas / GDPR_CV.md
Last active Mar 15, 2021
Formułka do CV, resume, RODO GDPR Compliant resume formulae
View GDPR_CV.md

Polski 🇵🇱

Wyrażam zgodę na przetwarzanie moich danych osobowych w celu rekrutacji zgodnie z art. 6 ust. 1 lit. a Rozporządzenia Parlamentu Europejskiego i Rady (UE) 2016/679 z dnia 27 kwietnia 2016 r. w sprawie ochrony osób fizycznych w związku z przetwarzaniem danych osobowych i w sprawie swobodnego przepływu takich danych oraz uchylenia dyrektywy 95/46/WE (ogólne rozporządzenie o ochronie danych)

English 🇪🇺

I hereby give consent for my personal data included in my application to be processed for the purposes of the recruitment process under the European Parliament's and Council of the European Union Regulation on the Protection of Natural Persons as of 27 April 2016, with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (Data Protection Directive)

@james-brndwgn
james-brndwgn / components.md
Last active May 20, 2020 — forked from iclanzan/components.md
UI Component Name Ideas
View components.md

UI component names

Interactive components

  • button
  • switch
  • toggle
  • slider
  • handle
  • tab
@baumandm
baumandm / GIF-Screencast-OSX.md
Last active Mar 16, 2021 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to Animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime and ffmpeg.

Forked from https://gist.github.com/dergachev/4627207. Updated to use a palette to improve quality and skip gifsicle.

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@thom-nic
thom-nic / build.gradle
Last active Feb 12, 2021
find the largest classnames in Spring libraries. Also find FactoryFactories
View build.gradle
/**
* Find the longest class names in Spring.
* Also find FactoryFactory classes.
* a goof-off project by @thom_nic
*/
import java.util.jar.*
defaultTasks 'longest', 'factoryfactory'
@mitchwongho
mitchwongho / Docker
Last active Apr 19, 2021
Docker 'run' command to start an interactive BaSH session
View Docker
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@ErikHellman
ErikHellman / PaintView.java
Created Jul 24, 2013
A very simple example of using multi-touch on Android to build a custom View for finger painting. This example uses the Path class from the android.graphics package. Feel free to use this code as you wish for your own multi-touch apps.
View PaintView.java
public class PaintView extends View {
public static final int MAX_FINGERS = 5;
private Path[] mFingerPaths = new Path[MAX_FINGERS];
private Paint mFingerPaint;
private ArrayList<Path> mCompletedPaths;
private RectF mPathBounds = new RectF();
public PaintView(Context context) {
super(context);
}
@6174
6174 / Random-string
Created Jul 23, 2013
Generate a random string in JavaScript In a short and fast way!
View Random-string
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
@cobyism
cobyism / gh-pages-deploy.md
Last active Apr 16, 2021
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).
View gh-pages-deploy.md

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@THeK3nger
THeK3nger / audio.py
Last active Apr 11, 2021
Python Wave Audio Loop
View audio.py
import os
import wave
import threading
import sys
# PyAudio Library
import pyaudio
class WavePlayerLoop(threading.Thread) :
"""