Skip to content

Instantly share code, notes, and snippets.

View tomasfrancisco's full-sized avatar
:octocat:
🏄🏻‍♂️

Tomás Francisco tomasfrancisco

:octocat:
🏄🏻‍♂️
View GitHub Profile
@tomasfrancisco
tomasfrancisco / openingHoursTable.ts
Last active September 10, 2022 11:06
openingHoursTable
interface OpeningHours {
/**
* weekday from 0 to 6
* 0 - Monday, 6 - Sunday
*/
weekDay: number;
/**
* HH:mm format
*/
timeFrom: string;

Keybase proof

I hereby claim:

  • I am tomasfrancisco on github.
  • I am tomasfrancisco (https://keybase.io/tomasfrancisco) on keybase.
  • I have a public key ASDhabjCsDXQYWnzNU5ANqnuoH8WLmgElkguJNVz5s0e0go

To claim this, I am signing this object:

➜ swift vapor new hello-world
Cloning Template [Done]
Updating Package Name [Done]
Initializing git repository [Done]
**
**~~**
**~~~~~~**
**~~~~~~~~~~**
**~~~~~~~~~~~~~~**
@tomasfrancisco
tomasfrancisco / decorator.tsx
Last active February 28, 2019 12:37
React type safe Higher-Order Component (HOC)
import * as React from "react";
export interface DecoratedProps {
prop1: string;
prop2: number;
}
export interface DecoratedOptions {
option1: string;
option2: number;
@tomasfrancisco
tomasfrancisco / iterm2-solarized.md
Created November 6, 2016 20:13 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font (OS X / macOS)

Solarized

@tomasfrancisco
tomasfrancisco / kill.java
Created October 25, 2016 18:41
Terminate a program running a thread before.
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
try {
rt.stopReceiverTopic();
rq.stopReceiverQueue();
} catch (JMSException e) {
e.printStackTrace();
}
}
<table>
<tr>
<td>
Line 1, Col 1
</td>
<td rowspan="2">
Line 1, Col 2
</td>
</tr>
<tr>