Skip to content

Instantly share code, notes, and snippets.

@iamarcel
iamarcel / search-gpt.py
Created February 11, 2023 12:57
Basic GPT-3 + Bing Answering Machine
import os
import openai
import requests
from pprint import pprint
import dotenv
dotenv.load_dotenv()
openai_api_key = os.environ.get("OPENAI_API_KEY")
bing_search_api_key = os.environ['BING_SEARCH_V7_SUBSCRIPTION_KEY']
@iamarcel
iamarcel / dialogflow-fulfillment.d.ts
Created October 9, 2019 11:27
Dialogflow Fulfillment Node.js Typescript declaration
declare module 'dialogflow-fulfillment' {
import { DialogflowConversation } from 'actions-on-google';
import { Request, Response } from 'express';
export class Card extends RichResponse {
constructor(card: string | object);
public setButton(button: {
text: string,
url: string,
@iamarcel
iamarcel / Rental Scam - Overview.md
Last active October 23, 2023 22:31
How we almost got scammed finding a place to stay

My sister was looking for a place to stay in Oslo because she's doing an Erasmus there and due to some miscommunications, the school hadn't provided housing for her. We almost fell victim to a sophisticated scam where our correspondent placed an attractive offer online and impersonated TripAdvisor in order to collect a "booking fee".

The Intro

After contacting the "owner", we got this response:

On 21 Jul 2017, at 15:58, Rosado Gomez <rosadogomez58@gmail.com> wrote:
@iamarcel
iamarcel / main.tex
Created May 21, 2017 20:30
UGent-style LaTeX
\documentclass[a4paper]{report}
\usepackage{pdfpages}
\usepackage{float}
\usepackage{color}
\usepackage{array,graphicx}
\usepackage{booktabs}
\usepackage{pifont}
\usepackage[space]{grffile}
\usepackage[backend=biber]{biblatex}
\usepackage{tcolorbox}
@iamarcel
iamarcel / stylish.css
Created January 9, 2017 13:50
Quiet Facebook
/* Hide the stream */
#stream_pagelet {
display: none;
}
/* Hide the sidebar */
#rightCol {
display: none;
}
@iamarcel
iamarcel / Structuring Neat .NET Core Command Line Apps Neatly.org
Created September 7, 2016 07:30
Structuring Neat .NET Core Command Line Apps Neatly
@iamarcel
iamarcel / Creating Neat .NET Core Command Line Apps.md
Last active November 28, 2023 10:41
Creating Neat .NET Core Command Line Apps

Creating Neat .NET Core Command Line Apps

You can now read this on my (pretty) website! Check it out here.

Every reason to get more HackerPoints™ is a good one, so today we're going to write a neat command line app in .NET Core! The Common library has a really cool package Microsoft.Extensions.CommandlineUtils to help us parse command line arguments and structure our app, but sadly it's undocumented.

No more! In this guide, we'll explore the package and write a really neat

@iamarcel
iamarcel / keybase.md
Last active June 21, 2016 11:59
Keybase Proof

Keybase proof

I hereby claim:

  • I am iamarcel on github.
  • I am mrcl (https://keybase.io/mrcl) on keybase.
  • I have a public key ASAsA1z910v5UtCRosLwG3o0xTzfT-uKGVpyf19uaHjFwQo

To claim this, I am signing this object:

@iamarcel
iamarcel / gist:0ebfb1856249eceb928c
Created April 3, 2015 17:13
Awesome C completion with Vim
" Hide concealed text unless it has a custom replacement character defined
set conceallevel=2
" Text can be concealed in visual, insert and normal modes
set concealcursor=vin
" Don't show preview scratch window, show the menu even if only one
" completion, autocomplete the longest in the menu
set completeopt=menu,menuone,longest
" Limit the number of completions
@iamarcel
iamarcel / presentatie_kritiekjes
Created December 7, 2013 10:05
Die Marcel moet altijd zo'n lange dingen zchrijven èh!
Ik ga even een beetje moeilijk doen, dus vergeef mij voor het gezaag (ik ben vrij gemotiveerd om van onze presentatie de beste te maken van iedereen, dus dan komt mijn perfectionistisch kantje naar boven :p—ik doe ook zo moeilijk voor mijzelf, als je je het afvroeg).
Enfin, volgens mij staat er echt nog veel te veel informatie op de presentatie; de PowerPoint moet een *ondersteuning* zijn van wat we zeggen, niet het vervangen. Nu vind ik dat het nog veel te veel lijkt op een samenvatting of handouts, wat we niet willen—het is de bedoeling dat het publiek naar *ons* kijkt, niet? Kijk naar een paar slides van Steve Jobs:
![Aankondiging iPhone - Slide 1][1]
![Aankondiging iPhone - Slide 2][2]
![Aankondiging iPhone - Slide 3][3]