Skip to content

Instantly share code, notes, and snippets.

@saik0
saik0 / PKGBUILD
Last active August 29, 2015 14:04
android-platform-20
_rev=r03
_sdkver=L
_sdkint=20
pkgname=android-platform-${_sdkint}
pkgver=${_sdkver}_${_rev}
pkgrel=2
pkgdesc="Android SDK Platform, API-${_sdkint}"
arch=('any')
url="http://developer.android.com/sdk/index.html"
license=('custom')
(ns sieve.core
(:use clojure.data.priority-map)
(:gen-class))
(defn doto-last [coll f & args]
(let [idx (dec (count coll))
args (conj args (coll idx))]
(assoc coll idx (apply f args))))
(defn prime-gaps [gk-1]
@saik0
saik0 / cmap.clj
Last active August 29, 2015 14:19
Cumulative map
(defn cmap
"lazy cumulative map"
([f coll] (cmap f (f) coll))
([f val coll]
(cons val
(if (empty? coll)
nil
(lazy-seq (cmap f
(f val (first coll))
(rest coll))))))
@saik0
saik0 / keybase.md
Created July 24, 2015 02:34
Keybase Proof

Keybase proof

I hereby claim:

  • I am saik0 on github.
  • I am joelpedraza (https://keybase.io/joelpedraza) on keybase.
  • I have a public key whose fingerprint is 46E4 E501 0F1A 56F4 8235 9512 A092 F38E A440 C589

To claim this, I am signing this object:

@saik0
saik0 / PKGBUILD
Created November 13, 2012 21:14
android-support r11-1
# Maintainer: Jakub Schmidtke <sjakub-at-gmail-dot-com>
# Contributor: Joel Pedraza <joel@joelpedraza.com>
pkgname=android-support
pkgver=r11
pkgrel=1
pkgdesc='Android Support Package'
arch=('any')
url="https://developer.android.com/sdk/compatibility-library.html"
license=('custom')
@saik0
saik0 / PKGBUILD
Created November 13, 2012 21:46
eclipse-android 21.0.0-1
# Maintainer: Jakub Schmidtke <sjakub-at-gmail-dot-com>
# Contributor: Joel Pedraza <joel@joelpedraza.com>
# Contributor: Forrest L <cybercyst at gmail com>
# Contributor: Michael P <ptchinster@archlinux.us>
# Contributor: Marcin "eXine" M. <exine@jun.pl>
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
# Contributor: Ashok `ScriptDevil` Gautham <ScriptDevil@gmail.com>
# Contributor: Laszlo Papp <djszapi2 at gmail com>
# Contributor: Antonio Santos <asantos at gmail dot com>
@saik0
saik0 / DemoUnifiedPreferenceActivity.java
Created November 14, 2012 18:23
How to find preferences and setup listeners in UnifiedPreference
/*
** Copyright 2012, Joel Pedraza
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
@saik0
saik0 / index.html
Created April 3, 2013 02:47
leaflet test
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.ie.css" />
<![endif]-->
<script type="text/javascript" src="http://cdn.leafletjs.com/leaflet-0.5/leaflet.js"></script>
<script type="text/javascript" src="leafletembed.js"></script>
</head>
<body onload="initmap();">
@saik0
saik0 / PKGBUILD
Created September 19, 2013 14:22
Boson X PKGBUILD
# Maintainer: Ben R <thebenj88 *AT* gmail *DOT* com>
pkgname=boson-x
pkgver=1.0.1
_pkgver=${pkgver//\./_} # replace all '.' with '_'
pkgrel=3
pkgdesc="DRM-free rotational running game"
arch=('x86_64')
url="http://www.boson-x.com/"
license=('Custom')
source=("http://downloads.muandheyo.com/BosonX_v${_pkgver}_Linux.zip"
if (get_application_name()=="Starbound - Beta") then
set_window_position2(0,0);
maximize();
undecorate_window();
end