Skip to content

Instantly share code, notes, and snippets.

["1", "2", "3", "4", "5"].map(function(x, y, z){return parseInt(x)})
@developernotes
developernotes / DemoViewController.cs
Created April 4, 2013 16:43
Full text search example with SQLCipher for Xamarin.iOS
using System;
using System.Drawing;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.IO;
using Mono.Data.Sqlcipher;
namespace Demo
(defun string-replace (old-value new-value source)
"replace old-value with new-value from source"
(with-temp-buffer
(insert source)
(goto-char (point-min))
(while (search-forward old-value nil t)
(replace-match new-value nil t))
(buffer-substring (point-min) (point-max))))
(defun org-export-to-csv (file)
@developernotes
developernotes / SampleTest.java
Created November 13, 2013 23:13
Sample test for opening a SQLCipher 3.0.0 database for the SQLCipher mailing list.
package net.zetetic.tests;
import android.util.Log;
import net.sqlcipher.Cursor;
import net.sqlcipher.database.SQLiteDatabase;
import net.zetetic.ZeteticApplication;
import java.io.File;
import java.io.IOException;

Keybase proof

I hereby claim:

  • I am developernotes on github.
  • I am developernotes (https://keybase.io/developernotes) on keybase.
  • I have a public key whose fingerprint is 61DE BD73 2F3F 0777 1269 972E 2F87 3048 08D4 0CEC

To claim this, I am signing this object:

@developernotes
developernotes / brew-list-dependencies.rb
Created April 30, 2015 15:18
List installed homebrew packages and their dependencies
require 'utils'
class ListDependencies
def run
@command = <<-EOT
brew list | while read cask; do
printf "\e[1;34m%s ->\e[1;37m" "$cask";
brew deps $cask | awk '{printf(" %s ", $0)}'; echo "";
done

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: