Skip to content

Instantly share code, notes, and snippets.

View marianabocoi's full-sized avatar

Mariana B. (she/her/they/them) marianabocoi

View GitHub Profile
@marianabocoi
marianabocoi / pink-git-workshop-april-2023.md
Last active April 23, 2023 20:15
Workshop from PinkProgramming Sunday event in Stockholm from April 2023
let p = []
p[0] = 52037
p[6] = 52081
p[5] = 52063
p[1] = 52077
p[9] = 52077
p[10] = 52080
p[4] = 52046
p[3] = 52066
p[8] = 52085
@marianabocoi
marianabocoi / gcp-sustainability.md
Last active April 16, 2022 16:02
gcp-sustainability
# Writeup of anything codered that is not in the README
#Week 1
# Commandline recap
#go to folder
cd <foldername>
## go to parent folder
cd ..
# list files inside current directory
ls
# Hello World
# Where am I
pwd
# Change Directory
cd <dir-name>
# Go one level up
cd ..
# This file
j.mp/pink-docker
__________________________________________________________________
# Mac Install
# To install brew run one liner from https://brew.sh
brew cask install docker
# Windows install
# https://docs.docker.com/toolbox/overview/#whats-in-the-box
@marianabocoi
marianabocoi / views.py
Last active February 19, 2017 10:58
Hello World - Chat Bot - Bonus 4
from flask import request, Response
from kik.messages import messages_from_json, TextMessage, SuggestedResponseKeyboard, TextResponse
from app import application, kik
"""
Detta ar ett enkelt exempel pa hur man kan fa Kik-boten att fraga en enkel fraga.
For Telegram sa kan du titta har:
https://core.telegram.org/bots#keyboards
This is a simple example of how to make the Kik bot ask a simple question.
@marianabocoi
marianabocoi / git-log2json.sh
Created October 11, 2015 11:55 — forked from textarcana/git-log2json.sh
Convert Git logs to JSON. The first script (git-log2json.sh) is all you need, the other two files contain only optional bonus features :)
#!/usr/bin/env bash
# Use this one-liner to produce a JSON literal from the Git log:
git log \
--pretty=format:'{%n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f"%n},' \
$@ | \
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \
perl -pe 's/},]/}]/'