Skip to content

Instantly share code, notes, and snippets.

View OskarKaminski's full-sized avatar
🚀
All amazing achievements arise by hate to mediocrity

Oskar OskarKaminski

🚀
All amazing achievements arise by hate to mediocrity
  • Poland
View GitHub Profile
function Trie() {
this.root = new Node()
};
function Node(){
this.children = {}
this.count = 1
this.countExact = 0
}
const TarczaAntykryzysowaHOC = ({Child}) => (
<Child propaganda="Darmowa pozyczka 5k dla wszystkich mikroprzedsiebiorcow"
handleSubmit={e => console.log('Nie ma kasy w samorzadach. Naprawde spedziles godzine nad tym wnioskiem? Naiwniak...')} />
)
[
{
"name": "Oskar",
"cards": [
{
"value": 7,
"suit": "s"
},
{
"value": 6,
{
"connections": [
{
"id": "1",
"name": "Oskar"
},
{
"id": "2",
"name": "Arlenis"
}
{
"onePair": [
{
"input": [
{
"value": 2,
"symbol": "spades"
},
{
"value": 5,
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
nvm_has() {
type "$1" > /dev/null 2>&1
}
nvm_install_dir() {
echo "${NVM_DIR:-"$HOME/.nvm"}"
@OskarKaminski
OskarKaminski / schema.graphql
Created December 7, 2018 12:58
AppSync chat schema
type Conversation {
# The Conversation's timestamp.
createdAt: String
# A unique identifier for the Conversation.
id: ID!
# The Conversation's messages.
messages(after: String, first: Int): MessageConnection
# The Conversation's name.
name: String!
}
@OskarKaminski
OskarKaminski / Error.mutation.js
Created December 7, 2018 12:46
Modals with errors
import gql from 'graphql-tag';
export default gql`
mutation setError($error: String!) {
setError(error: $error) @client
}
`