Skip to content

Instantly share code, notes, and snippets.

View japsu's full-sized avatar

Santtu Pajukanta japsu

View GitHub Profile
@japsu
japsu / README.md
Created December 19, 2014 08:40
Crazy Idea: CommonJS Modules & NPM within MongoDB

Crazy Idea: CommonJS Modules & NPM within MongoDB

The Objective

mongod> npm.install(['lodash'])
[email protected]
mongod> var _ = require('lodash')

Then use _ in MongoDB MapReduce ;) ;)

@japsu
japsu / README.md
Last active February 9, 2022 21:34
ARCHIVED: How to get NumPy and SciPy working in a virtualenv under Mac OS X

ARCHIVED: How to get NumPy and SciPy working in a virtualenv under Mac OS X

Please don't use this method any more, this is ages old (2014, Python 2.7).

Assuming you use virtualenv for Python library hygiene. Now you want Numpy and Scipy in your project.

NumPy and SciPy can not be easily installed under Mac OS X with a simple

pip install scipy
$('button[type="submit"]').each(function(index, element) {
var input = $('<input type="submit">'),
$elem = $(element);
input.attr('name', $elem.attr('name') || 'submit');
input.attr('value', $elem.text());
input.attr('class', $elem.attr('class'));
$(element).replaceWith(input);
});

Keybase proof

I hereby claim:

  • I am japsu on github.
  • I am japsu (https://keybase.io/japsu) on keybase.
  • I have a public key whose fingerprint is AFB7 7174 3BA9 E603 486D AC3E F257 2D74 1F60 2388

To claim this, I am signing this object:

class tracon::atlassian {
include nginx
file {
"/opt/atlassian":
ensure => directory,
owner => 'root',
group => 'root',
mode => 0770;
}
Feature: A product is sold out
As a visitor
I want to order a ticket to Yukicon
But five hundred others beat me to it
And now I'm left without.
Scenario: Sold out products on the ticket phase
Given there is a product that is sold out
When I view the tickets phase
Then the product that is sold out should be marked as such
# Language: fi
Ominaisuus: Lippujen tilaaminen
Kävijänä haluan päästä Traconiin, mutta ilkeät järjestäjät sanovat
että tarvitsen pääsylipun.
Tausta:
Oletetaan että järjestelmässä on tuotteita
Tapaus: Onnistunut tilaus
Kun surffaan etusivulle
japsu@hobgoblin:~/Work/scratch$ coffee scrabble.coffee cartel /home/japsu/Work/scratch/scowl-7.1/final/english-words.*
acelrt
: cartel,claret,rectal,tarcel,carlet,lacert,talcer
t: clatter
tu: cultrate
ty: clattery
tt: tractlet
y: treacly,craylet
u: cuartel,curatel,leuctra
uu:
x () {
if [ -f $1 ]
then
case $1 in
(*.tar.bz2) tar xvjf $1 ;;
(*.tar.gz) tar xvzf $1 ;;
(*.bz2) bunzip2 $1 ;;
(*.rar) unrar x $1 ;;
(*.gz) gunzip $1 ;;
(*.tar) tar xvf $1 ;;
KÄYTÖSSÄ
========
astarte - Samsung Galaxy Y Pro -kännykkä
celestis - Samsung Galaxy Tab 8.9
opux - verkkotulostin
enyo - imicuksen seuraaja, tiedostopalvelin isän nurkissa
eris - virtuaalikone primellä
helios - kotipalvelin
iteron - kytkin