Skip to content

Instantly share code, notes, and snippets.

View Vratislav's full-sized avatar

Vratislav Kalenda Vratislav

View GitHub Profile
@Vratislav
Vratislav / testPayload.sh
Created January 7, 2019 23:16
Zapier webhook test payload
curl --header "Content-Type: application/json" \
--request POST \
--data '{
"date":"2017-09-11T18:19:15+02:00",
"candidateID":12345,
"offerID":1234,
"name":"Pan Žralok",
"position":"Vývojář webhooků",
"why":"Chci se stát vývojářem webhooků na StartupJobs.cz, protože mě to baví!",
"phone":"+420 725 875 752",
@Vratislav
Vratislav / SlackStartupjobsPayload.json
Created January 7, 2019 22:48
StartupJobs to Slack Zapier payload
{
"text": "Nový uchazeč o práci!\n*{{name}}* chce být *{{position}}*\n\n\n:phone: {{phone}} \n:email: {{email}}\n",
"attachments": [
{
"fallback": "{{why}}",
"color": "#6B97CA",
"title": "Proč já:question:",
"text": "{{why}}"
},
{
@Vratislav
Vratislav / simonSays.c
Created December 25, 2016 21:17
Simon Says for Arduino Uno
const int START_LEVEL = 3;
const int NUMBER_OF_BUTTONS = 4;
const int MAX_SEQUENCE_LENGTH = 256;
//INPUT PINS
const int btnBluePin = 2;
const int btnGreenPin = 3;
const int btnRedPin = 4;
@Vratislav
Vratislav / warrior.rb
Created July 2, 2016 15:06
Ruby warrior RG 2016
class Player
def enemey_ahead?(warrior)
spaces = warrior.look
return true if spaces[0].enemy?
return false if !spaces[0].empty?
return true if spaces[1].enemy?
return false if !spaces[1].empty?
return true if spaces[2].enemy?
@Vratislav
Vratislav / keybase.md
Created April 20, 2016 14:09
Keybase proof of my identity

Keybase proof

I hereby claim:

  • I am Vratislav on github.
  • I am vratislav (https://keybase.io/vratislav) on keybase.
  • I have a public key whose fingerprint is 4F7C 00F6 1E91 06DD 9040 F0CC 6E73 7C60 D9C9 16C2

To claim this, I am signing this object:

@Vratislav
Vratislav / HUDProviderDroid.cs
Created September 16, 2014 15:47
HUD Bindings for Xamarin Forms projects
using System;
using Applifting;
using Android.Content;
using Xamarin.Forms.Labs.Services;
namespace Applifting.Droid
{
public interface IDroidContextProvider{
Context Context {get;}
}
@Vratislav
Vratislav / PerfectRubyWarrior.rb
Last active December 29, 2015 16:49
This warrior will pass all the levels in https://www.bloc.io/ruby-warrior#/
class Player
#some dark reflection magic to allow our warrior to work in earlier levels
#where he does not have all the abilities
class DummySpace
def method_missing(name, *arguments)
if(name == :empty?)
return true
else
return false