Skip to content

Instantly share code, notes, and snippets.

@anttti
anttti / lego-space.csv
Created December 7, 2016 06:41
Lego Space Kit Names
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
SetID,Number,Variant,Theme,Subtheme,Year,Name,Minifigs,Pieces,UKPrice,USPrice,CAPrice,EUPrice,ImageURL
7522,"0012","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0012-1.jpg"
7523,"0013","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0013-1.jpg"
7524,"0014","1","Space","","1979","Space minifigures",2,4,,,,,"http://images.brickset.com/sets/images/0014-1.jpg"
7563,"0015","1","Space","","1979","Space Mini-Figures",3,18,,,,,"http://images.brickset.com/sets/images/0015-1.jpg"
9581,"54","1","Space","UFO","1997","UFO Action Pack",,96,,,,,"http://images.brickset.com/sets/images/54-1.jpg"
1273,"305","1","Space","Classic","1979","Two Crater Plates",,2,,,,,"http://images.brickset.com/sets/images/305-1.jpg"
1284,"306","1","Space","Classic","1979","Two Lunar Landing Plates",,2,,,,,"http://images.brickset.com/sets/images/306-1.jpg"
2104,"442","1","Space","Classic","1979","Space Shuttle",1,39,,,,,"http://images.brickset.com/sets/images/442-
@anttti
anttti / autoexec.cfg
Last active August 1, 2019 15:53
CS: GO binds
bind f "use weapon_flashbang"
bind c "use weapon_smokegrenade"
bind g "use weapon_hegrenade"
bind x "use weapon_incgrenade;use weapon_molotov"
bind "kp_ins" "buy vesthelm;"
bind "kp_del" "buy ak47; buy m4a1;"
bind "kp_enter" "buy flashbang;"
bind "kp_plus" "buy smokegrenade;"
bind "kp_minus" "buy sg556; buy aug;"
@anttti
anttti / looby-bot-1.js
Last active November 15, 2020 17:56
looby-bot-1
const TelegramBot = require('node-telegram-bot-api');
const token = 'token-goes-here';
const bot = new TelegramBot(token, { polling: true });
bot.onText(/\/hai/, (message) => {
bot.sendMessage(message.chat.id, 'hello looby');
});
console.log('I am putting myself to the fullest possible use, which is all I think that any conscious entity can ever hope to do.');
@anttti
anttti / looby-bot-2.js
Last active February 15, 2017 17:11
looby-bot-2
const TelegramBot = require('node-telegram-bot-api');
const token = 'token-goes-here';
const bot = new TelegramBot(token, { polling: true });
bot.on('message', (message) => {
console.log(message);
bot.sendMessage(message.chat.id, 'Received your message');
});
@anttti
anttti / bots.md
Last active February 16, 2017 08:16
looby-bots-guide
@anttti
anttti / looby-bot-3.js
Created February 16, 2017 07:52
looby-bot-3.js
const TelegramBot = require('node-telegram-bot-api');
const express = require('express');
const packageInfo = require('./package.json');
const token = 'token-goes-here';
const telegram = new TelegramBot(token, { polling: true });
telegram.on('message', (message) => {
console.log(message);
telegram.sendMessage(message.chat.id, 'Received your message');
@anttti
anttti / share.js
Created March 1, 2017 11:53
Facebook & Twitter -sharing without SDKs
onShareFB() {
window.open(
'https://www.facebook.com/sharer/sharer.php?u=http://SHARE-URL.com',
'pop',
'width=600, height=400, scrollbars=no'
);
},
onShareTwitter() {
window.open(
'https://twitter.com/intent/tweet?text=http://SHARE-URL.com',
@anttti
anttti / vr.js
Created January 9, 2018 08:48
VR No Flash bookmarklet
javascript:(function(d){var%20s=d.createElement('script');s.src='https://vr.aarre.net/nf.min.js?D='+(new%20Date()).getTime();d.head.appendChild(s)})(document)
@anttti
anttti / encode.elm
Created January 19, 2018 19:30
Encode object and array to JSON body for POSTing in Elm
getWeeklyReports : Cmd Msg
getWeeklyReports =
let
url =
"http://localhost:3001/engagement"
body =
Http.jsonBody <|
Encode.object
[ ( "groupNames", Encode.string "Tammerforce" )
#!/usr/bin/env bash
# Original Source: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/
## Usage: heroku_env_copy [options] SOURCE TARGET
##
## NOTE: This script will only output the command, you should run it yourself.
##
## Options:
## -h, --help Display this message.
##