Skip to content

Instantly share code, notes, and snippets.

View ilkka's full-sized avatar
:octocat:
sanitary deeds done at reasonable prices

Ilkka Poutanen ilkka

:octocat:
sanitary deeds done at reasonable prices
View GitHub Profile
import java.util.concurrent.Callable
import com.android.build.gradle.BasePlugin
import java.util.regex.Pattern
apply plugin: 'android'
apply plugin: RobolectricPlugin
class RobolectricPlugin implements Plugin<Project> {
public static final String ANDROID_PLUGIN_NAME = "android";
@ilkka
ilkka / keybase.md
Created September 30, 2014 17:42
Keybase.io proof

Keybase proof

I hereby claim:

  • I am ilkka on github.
  • I am ilkka (https://keybase.io/ilkka) on keybase.
  • I have a public key whose fingerprint is C63C E57F 6A94 9A15 5E23 C4C0 439F A002 AE5D 46DA

To claim this, I am signing this object:

@ilkka
ilkka / Timer-test.js
Created November 4, 2014 11:44
Jest + React + Gulp
// app/scripts/ui/__tests__/Timer-test.js
/** @jsx React.DOM */
jest.dontMock('../Timer');
describe('Timer', function () {
var Timer = require('../Timer');
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
// IndexComponent.jsx
var Index = React.createClass({
propTypes: {
products: React.PropTypes.array.isRequired
},
getDefaultProps: function getDefaultProps() {
return {
products: []
};
c:\>gem install spork --debug -V
Exception `NameError' at C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/site_ruby/1.9.1
/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::Install
Command
Exception `NameError' at C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/1.9.1/syck/tag.
rb:81 - method `yaml_as' not defined in Module
Exception `Gem::LoadError' at C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/site_ruby/
1.9.1/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0)
Exception `Gem::LoadError' at C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/site_ruby/
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-07-02 patchlevel -1) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/ruby-1.9.2-rc1-i386-mingw32/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/ruby-1.9.2-rc1-i386-mingw32/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
c:\ruby-1.9.2-rc1-i386-mingw32\lib\ruby\gems\1.9.1\gems\spork-0.8.4\ext>ruby mkrf_conf.rb
Actually, there aren't any native extensions. I'm just dynamically installing dependencies based off of your operating system
c:\ruby-1.9.2-rc1-i386-mingw32\lib\ruby\gems\1.9.1\gems\spork-0.8.4\ext>rake --trace RUBYARCHDIR=C:\ruby-1.9.2-rc1-i386-mingw32\lib\ruby\gems\1.9.1\gems\spork-0.8.4\lib RUBYLIBDIR=c:\ruby-1.9.2-rc1-i386-mingw32\lib\ruby\gems\1.9.1\gems\spork-0.8.4\lib
C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/site_ruby/1.9.1/rubygems.rb:335:in `bin_path': can't find executable rake for rake-0.8.7 (Gem::Exception)
from <internal:gem_prelude>:282:in `method_missing'
from C:/ruby-1.9.2-rc1-i386-mingw32/bin/rake:19:in `<main>'
Path=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files\QuickTime\QTSystem\;C:\Python31;c:\pik\bin;C:\ruby-1.9.2-rc1-i386-mingw32\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
[ 5.259]
X.Org X Server 1.9.0
Release Date: 2010-08-20
[ 5.259] X Protocol Version 11, Revision 0
[ 5.259] Build Operating System: Linux 2.6.24-27-server i686 Ubuntu
[ 5.259] Current Operating System: Linux testari-laptop 2.6.35-20-generic #29-Ubuntu SMP Fri Sep 3 14:49:14 UTC 2010 i686
[ 5.259] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.35-20-generic root=UUID=954778c0-715f-4737-8e4b-e955a207a176 ro quiet splash
[ 5.259] Build Date: 08 September 2010 09:03:27AM
[ 5.259] xorg-server 2:1.9.0-0ubuntu5 (For technical support please see http://www.ubuntu.com/support)
[ 5.259] Current version of pixman: 0.18.4