Skip to content

Instantly share code, notes, and snippets.

View Zeko369's full-sized avatar
:octocat:
Building cool stuff

Fran Zekan Zeko369

:octocat:
Building cool stuff
  • Zagreb, Croatia
  • 10:19 (UTC +02:00)
  • X @Zeko369
View GitHub Profile
{
"name": "tennis2",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-scripts eject",
"rs:start": "react-scripts start",
name: Deploy
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
#include <SimpleDHT.h>
#include "FastLED.h"
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
Adafruit_PCD8544 display = Adafruit_PCD8544(5, 4, 3);
#define NUM_LEDS 16
#define DATA_PIN 7
const xAxises = [
{ id: 1, name: 'pero' },
{ id: 2, name: 'foobar' }
];
const yAxises = [
{ id: 1, name: 'nesto' },
{ id: 2, name: 'slavko' }
];
export const TamTam: React.FC = () => {
{
"vim.insertModeKeyBindings": [
{
"before": ["j", "k"],
"after": ["<Esc>"]
}
],
"vim.normalModeKeyBindings": [
{
"before": ["B"],
@Zeko369
Zeko369 / useQueryWithoutSuspense.ts
Created January 13, 2021 23:17
Blitz useQuery without suspnse
import { FirstParam, PromiseType, QueryFn, useQuery as useBaseQuery } from "blitz"
import { QueryConfig } from "react-query"
export const useQuery = <T extends QueryFn, TResult = PromiseType<ReturnType<T>>>(
queryFn: T,
params: FirstParam<T>,
options?: QueryConfig<TResult, unknown> | undefined
) => {
return useBaseQuery(queryFn, params, { suspense: false, ...options })
}
class Tracker:
slots: Dict[str, Any]
def __init__(self, slots="", latest_message=None):
self.slots = loads(slots)
self.latest_message = latest_message
def latest_message(self):
return self.latest_message
@Zeko369
Zeko369 / typescript.json
Created November 24, 2021 15:53
Blitz snipptets
{
"ResolverImport": {
"prefix": "ri",
"body": "import { resolver } from 'blitz'"
},
"Resolver pipe": {
"prefix": "rp",
"body": "resolver.pipe(resolver.zod(schema$1), resolver.authorize([Role.Admin, Role.User$2]), "
},
"Blitz guard": {
.kr-column-group {
width: 100vw !important;
}
.kr-canvas-header > div > div {
display: none;
}
[data-coda-ui-id="dialog"] > div {
max-width: 1600px;
width: 90%;
<style>
#app > div > div:nth-child(2) > div > div > div:nth-child(3),
#app > div > div:nth-child(2) > div > div > div:nth-child(4),
div[data-focused-area="Composer"],
div[data-focused-area="ComposerToolbar"] {
filter: invert(1);
background-color: #efefef;
}