Skip to content

Instantly share code, notes, and snippets.

pwlin pwlin

Block or report user

Report or block pwlin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@darkcolonist
darkcolonist / psvita-vpk-transfer-guide.md
Last active Apr 22, 2019
how to transfer VPK via FTP and install them in psvita (henkaku / vitashell)
View psvita-vpk-transfer-guide.md

#how to transfer games to your vita via FTP

###requirements

  • henkaku activated psvita 3.60
  • filezilla ftp client
  • wifi connection
  • make sure your psvita and computer are in the same wifi network

##in your computer

  • install filezilla (ftp client)
@rchrd2
rchrd2 / upload_site.sh
Created Apr 5, 2016
Neocities Upload
View upload_site.sh
#!/bin/bash
# Neocities provies an API for uploading files from ./public_html to your site
#
# Example Usage:
# $ USERNAME=username PASS=secret_pass bash upload_site.sh
function upload_file {
fullName=$1
shortName=${fullName:2}
View README.md

The issue:

..mobile browsers will wait approximately 300ms from the time that you tap the button to fire the click event. The reason for this is that the browser is waiting to see if you are actually performing a double tap.

(from a new defunct https://developers.google.com/mobile/articles/fast_buttons article)

touch-action CSS property can be used to disable this behaviour.

touch-action: manipulation The user agent may consider touches that begin on the element only for the purposes of scrolling and continuous zooming. Any additional behaviors supported by auto are out of scope for this specification.

@haasn
haasn / about:config.md
Last active Apr 24, 2019
Firefox bullshit removal via about:config
View about:config.md

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

@kristopolous
kristopolous / hn_seach.js
Last active Apr 7, 2019
hn job query search
View hn_seach.js
function query() {
var
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments),
shown = 0, total = job_list.length;
// Traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.classList.contains(klass)) {
View AVPlayerCaching.m
//
// ViewController.m
// AVPlayerCaching
//
// Created by Anurag Mishra on 5/19/14.
// Sample code to demonstrate how to cache a remote audio file while streaming it with AVPlayer
//
#import "ViewController.h"
#import <AVFoundation/AVFoundation.h>
@paulrouget
paulrouget / ff.md
Last active Mar 11, 2019 — forked from operatorjen/ff.md
Hacking Firefox
View ff.md
@mlouro
mlouro / gulpfile.js
Last active Apr 10, 2019
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
View gulpfile.js
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var uglify = require('gulp-uglify');
var gulpif = require('gulp-if');
var exec = require('child_process').exec;
var notify = require('gulp-notify');
View vistafonts-installer
## A re-spin on http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer, see
## http://community.linuxmint.com/tutorial/view/365
## SHARP-BANG NEXT LINE
#!/bin/sh
# Copyright (c) 2007 Aristotle Pagaltzis
# 2013 Sören Andersen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
@adamjimenez
adamjimenez / gist:5917897
Created Jul 3, 2013
Generate thumbnails from video files using HTML5's video tag and canvas
View gist:5917897
<?php
//where you want your thumbnails to go
$thumbs_dir = 'uploads/thumbs/';
//this should be an array of video paths
$videos = array();
if( $_POST["name"] ){
// Grab the MIME type and the data with a regex for convenience
if (!preg_match('/data:([^;]*);base64,(.*)/', $_POST['data'], $matches)) {
You can’t perform that action at this time.