Skip to content

Instantly share code, notes, and snippets.

Avatar
🐞
Various bug fixes and improvements

Ricky de Laveaga rdela

🐞
Various bug fixes and improvements
View GitHub Profile
@rdela
rdela / detweet.swift
Last active Aug 2, 2020 — forked from mxcl/detweet.swift
Delete all tweets and favorites older than two months ago. But don't unblock people. Instructions in comment.
View detweet.swift
#!/usr/bin/swift sh
import Foundation
import PromiseKit // @mxcl ~> 6.5
import Swifter // @mattdonnelly == b27a89
let swifter = Swifter(
consumerKey: "FILL",
consumerSecret: "ME",
oauthToken: "IN",
oauthTokenSecret: "https://developer.twitter.com/en/docs/basics/apps/overview.html"
@rdela
rdela / microblog-bookmarklet.js
Last active May 16, 2020
post link and optional selection to micro.blog mac app
View microblog-bookmarklet.js
javascript:if(document.getSelection().rangeCount > 0){s='> '+document.getSelection()+'\n\n';}else{s='';};t=document.title;l=location.href;p='['+t+']'+'('+l+')';document.location='microblog://post?text='+encodeURIComponent(s+p);
@rdela
rdela / CForLoopExample.swift
Created Jun 27, 2019 — forked from JoshuaSullivan/CForLoopExample.swift
Don't mourn the removal of --, ++ and the C-style for loop from Swift. Read the blog post: http://www.chibicode.org/?p=24
View CForLoopExample.swift
let baseString = "/Documents/"
let words = ["Alpha", "Beta", "Gamma", "Delta"]
var paths : [String] = []
for (var i = 0; i < words.count; ++i) {
let word = words[i]
paths.append("\(baseString)\(word)")
}
print(paths)
@rdela
rdela / Hoverable.js
Created Mar 5, 2018 — forked from necolas/Hoverable.js
Hover styles in React Native for Web
View Hoverable.js
import createHoverMonitor from './createHoverMonitor';
import { element, func, oneOfType } from 'prop-types';
import React, { Component } from 'react';
const hover = createHoverMonitor();
/**
* Use:
* <Hoverable>
* {(hover) => <View style={hover && styles.hovered} />}
@rdela
rdela / npm-search-feat-nsp-20171204-144227.txt
Created Dec 4, 2017
npm-search-feat-nsp-20171204-144227.txt
View npm-search-feat-nsp-20171204-144227.txt
Dec 4 14:42:27 npm-search[69283] INFO: 🗿 npm ↔️ Algolia replication starts ⛷ 🐌 🛰
Dec 4 14:42:29 npm-search[69283] INFO: ⛷ Bootstrap: starting from the first doc
Dec 4 14:42:54 npm-search[69283] INFO: 🔍 Found and saved 100 packages
Dec 4 14:42:54 npm-search[69283] INFO: ⛷ Synced 100/601392 docs (0%), current rate: 4 docs/s (2d remaining)
{ AlgoliaSearchError: Record at the position 73 objectID=101 is too big size=23909 bytes. Contact us if you need an extended quota
at success (/Users/r/Documents/code/gh/rdela/npm-search/node_modules/algoliasearch/src/AlgoliaSearchCore.js:351:32)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
name: 'AlgoliaSearchError',
message: 'Record at the position 73 objectID=101 is too big size=23909 bytes. Contact us if you need an extended quota',
View keybase.md

Keybase proof

I hereby claim:

  • I am rdela on github.
  • I am rdela (https://keybase.io/rdela) on keybase.
  • I have a public key ASAXSr95gZxCbAZfXt_ghaS38Xi4PLS5h0Mfn4IZuvKTmwo

To claim this, I am signing this object:

View convert-mp4-to-mkv.sh
#!/bin/bash
#
# convert-mp4-to-mkv.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 1.0 of May 30, 2014
View detect-crop.sh
#!/bin/bash
#
# detect-crop.sh
#
# Copyright (c) 2013-2014 Don Melton
#
about() {
cat <<EOF
$program 2.0 of February 7, 2014
View transcode-video.sh
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
# This script uses `HandBrakeCLI` (see: <http://handbrake.fr/>) to transcode a
# video file or disc image directory into a format and size similar to videos
# available for download from the iTunes Store.
#
View batch.sh
#!/bin/bash
# batch.sh
#
# Copyright (c) 2013 Don Melton
#
# This version published on June 8, 2013.
#
# Batch control for the "encode.sh" script.
#
You can’t perform that action at this time.