Skip to content

Instantly share code, notes, and snippets.

View dannyow's full-sized avatar
👁️‍🗨️

Daniel dannyow

👁️‍🗨️
  • Warsaw
View GitHub Profile
@dannyow
dannyow / .gitignore_global
Created October 4, 2012 10:39
To add this file as a global ignore list - git config --global core.excludesfile ~/.gitignore_global
# From https://github.com/mt3/dotfiles/blob/master/.gitignore_global
# To add this file as a global ignore list - git config --global core.excludesfile ~/.gitignore_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
Niektórzy niemądrzy ludzie
Pyski maczają w wódzie
Ja się w wódce nie lubuję !
Co innego proponuję.
Cóż to może być, spytacie ?
Czy o piwie mówisz bracie ?
Ani piwo, ani wódka
Która jest jak szczurza trutka !
@dannyow
dannyow / dom-to-csv
Created October 8, 2013 16:28
wwdc 2013 videos printed as CSV (session name, number) in browser's JS console.
var l = document.querySelectorAll("li.session ul.thumbnail");
var f = function(e){ console.log(e.querySelector('.thumbnail-title').innerText+"\t"+e.querySelector('.thumbnail-id').innerText.split(' ')[1]);}
for(var i=0; i<l.length; i++){ f(l[i]) }
@dannyow
dannyow / hexspeak
Created October 9, 2013 08:38
Hexspeak word list
00D1E5
0111E
0115
011ED
011F1E1D
011F1E1D5
015E
01AF
01D1E
@dannyow
dannyow / Readme.md
Created June 1, 2017 08:08 — forked from w8r/Readme.md
Circle packing!

Circle packing

Simple directed layout to pack different-sized circles as close as possible

@dannyow
dannyow / .block
Created June 5, 2017 08:44
Bubble Chart
license: gpl-3.0
height: 960
border: no
@dannyow
dannyow / avconvert-all.sh
Created December 16, 2020 12:37
Convert input video to all formats avail in avconvert
#!/usr/bin/env bash
# set -x
convert(){
avconvert --source $1 --output ${1/\.mp4/-$2.m4v} --preset $2
}
presets=(
"Preset640x480"
"Preset960x540"
@dannyow
dannyow / post-checkout
Created January 15, 2021 20:39
post-checkout
#!/bin/sh
# Fix on Xcode problem with git-lfs
# Simply skip the git-lfs check if there is GIT_EXEC_PATH /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core
if [ -z "$GIT_EXEC_PATH" ]
then
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\n"; exit 2; }
git lfs post-checkout "$@"
else
@dannyow
dannyow / debug-breakpoint.scss
Created May 8, 2021 16:37
Show current Bootstrap breakpoint as overlay on top of the page
/*
Add this to the page:
<divid="breakpoint-debug"><spanclass="xs">xs</span><spanclass="sm">sm</span><spanclass="md">md</span><spanclass="lg">lg</span><spanclass="xl">xl</span><spanclass="xxl">xxl</span></div>
Sizes: https://getbootstrap.com/docs/5.0/layout/breakpoints/
*/
#breakpoint-debug {
// display:none;
position: absolute;
width: 100vw;
@dannyow
dannyow / hello-world.c
Last active November 14, 2021 00:27
How to print a non-latin text with raylib
#include <raylib.h>
int main(void) {
const int screenWidth = 800;
const int screenHeight = 450;
SetConfigFlags(FLAG_VSYNC_HINT);
SetConfigFlags(FLAG_WINDOW_RESIZABLE);
SetConfigFlags(FLAG_WINDOW_HIGHDPI);