Skip to content

Instantly share code, notes, and snippets.

View worm-emoji's full-sized avatar
🪱

luke miles worm-emoji

🪱
View GitHub Profile
@textformer
textformer / Stylefile.yml
Created July 31, 2018 20:12
Customizations for www.pc-magazin.de via StyleURL.
---
version: 1.0
domains:
- www.pc-magazin.de
url_patterns:
- www.pc-magazin.de/*
timestamp: '2018-07-31T20:11:01Z'
id: n7i-
redirect_url: https://www.pc-magazin.de/
shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome
@aksonov
aksonov / rnrf.md
Last active August 26, 2024 12:27
Proposal for lightning talk at ReactiveConf 2017: What is RNRF (react-native-router-flux)?

What is RNRF (react-native-router-flux)?

React Native is great product but lacks for stable, intuitive and easy navigation API during many years. Every year we see new, better API: Native Navigator, ex-Navigator, NavigationExperimental, ex-Navigation, wix native navigation, airbnb native navigation, ReactNavigation...

Once I've started React Native development, in 2015, I created RNRF - simple API for easy navigation. It was clear that better navigation instruments will come later but I didn't want to change my code again and again to switch for better API. Every new major version of RNRF is based on different navigation framework and mostly preserves own API.

Another goal was to represent all navigation flow within one place in clear, human-readable way - similar to iOS Storyboards concept. This way other engineers could understand your app flow faster.

@almost
almost / codegolf.md
Last active August 21, 2017 01:00
Problems from last night's Code Golf at Async.JS

Yes? No?

Make a function (named 'play') that takes a boolean (true or false) and returns the string 'y' (for true) or 'n' (for false)

To the power of JavaScript

Make a function that takes a number between 1 and 30 and returns 2 raised to the power of that number. (you can use ES2015 but nothing beyond that)

@ethan605
ethan605 / LICENSE
Last active January 26, 2017 18:01
react-native-router-flux custom panHandlers
MIT License
Copyright (c) 2016 Ethan Nguyen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@khanlou
khanlou / Fonts.swift
Created October 6, 2016 21:10
Print all fonts in Swift 3
UIFont.familyNames.forEach({ familyName in
let fontNames = UIFont.fontNames(forFamilyName: familyName)
print(familyName, fontNames)
})
@gka
gka / make-animated-gifs-using-ffmpeg.md
Last active August 23, 2024 00:23
how to make a nice GIF from png frames

Make sure ffmpeg is up-to-date:

brew update
brew upgrade ffmpeg

Convert a MOV into frames. Tweak the 2/1 if you want more or fewer frames.

@mrmch
mrmch / angellist.css
Last active January 29, 2016 01:09
Hide candidate pictures and names on AngelList
div.candidate-picture {
display: none;
}
.js-browse-table-row-name {
display: none;
}
@fouad
fouad / cloudflare.json
Created October 12, 2015 06:42
Purge CloudFlare cache on deploy
{
"email": "me@email.com",
"zone": "CLOUDFLARE_ZONE",
"token": "CLOUDFLARE_TOKEN"
}
@netsensei
netsensei / Ionic gulp
Last active January 29, 2017 07:48
Extends Ionics' default Gulp.js with a scripts & bower-files task. Moves app/ source outside the www folder.
var gulp = require('gulp');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var gulpBowerFiles = require('gulp-bower-files');
var paths = {
sass: ['./scss/**/*.scss'],
scripts: ['./app/**/*.js', './app/*.js']
@samueltc
samueltc / gist:2dad265b519f6ecb4e95
Created May 9, 2014 19:18
squid cache_peer with crawlera/proxyhub
Change: $scrapinhub/crawlera_hostname$, $username$, $password$ and you're ready to go.
Tested with squid3
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
hosts_file /etc/hosts
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320