Skip to content

Instantly share code, notes, and snippets.

View vladinator1000's full-sized avatar
๐Ÿ‰

Vlady Veselinov vladinator1000

๐Ÿ‰
View GitHub Profile
#!/usr/bin/env bash
if [[ -z $GITHUB_API_TOKEN ]]; then
echo "The \"\$GITHUB_API_TOKEN\" environment variable is undefined. Please generate a new token from https://github.com/settings/tokens, copy the token, paste it here and press enter:"
read GITHUB_API_TOKEN
fi
function installDependencies() {
echo "Updating Homebrew, this might take a while."
brew update
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="utf-8">
<!-- utf-8 works for most cases -->
<meta name="viewport" content="width=device-width">
<!-- Forcing initial-scale shouldn't be necessary -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">

The Team

The Gameplay

Fast paced sci-fi dodgeball

  1. Gameplay first
    1. Conveying information with sound
    2. Identify Important gameplay events
    3. Identify frequent gameplay events
  2. Identify epic gameplay events
@vladinator1000
vladinator1000 / ApolloHooksExample.ts
Last active May 23, 2019 14:37
Apollo client example
import React, { useState } from 'react'
import { gql } from 'graphql-tag'
import { QueryResult } from '@apollo/react-common'
import { useQuery } from '@apollo/react-hooks'
import * as GeneratedTypes from "./__generated__/GetSubreddit"
import Picker from './components/Picker'
// the GraphQL query, can also be imported from a file
const GET_SUBREDDIT = gql`
@echo off
ssh-agent | grep -v echo | sed -e "s/^/@set /" | sed -e "s/;.*$//" - > call.cmd
call call.cmd
del call.cmd
ssh-add "%HOME%\.ssh\id_rsa"
@echo on
// Foundation for Sites Settings
// -----------------------------
$color-primary: #62a9ff;
$color-blackish: #181b22;
$inner-card-black: #1d2026;
$color-dark-gray: #25292f;
$color-gray: #b9babb;
$color-light-gray: #c5c8cf;
import jwt from 'jsonwebtoken';
import config from '../config';
import UserModel from '../server/postgres/models/User';
import VenueModel from '../server/postgres/models/Venue';
const { objectContaining, any } = expect;
const userModel = new UserModel();
const venueModel = new VenueModel();
@vladinator1000
vladinator1000 / ReactBindingFunctions.js
Last active March 5, 2018 19:50
How to bind only once.
class SomeForm extends React.Component {
constructor(props) {
super(props);
this.onSubmit = this.onSubmit.bind(this);
}
onSubmit() {
// ...
}
import * as React from 'react';
import {
Table,
Search,
} from 'semantic-ui-react';
import { Venue } from '../redux/types';
export interface Props {
getVenuesByName: (name: string) => [Venue];
@vladinator1000
vladinator1000 / GAplatoe.py
Created October 2, 2017 15:24
so QUESTION
Hi, I'm trying to generate "Hello world!", but my results stop improving strings reach roughly about 70% similarity. Here's what I've done:
from difflib import SequenceMatcher
from numpy import std
from random import randint
import random
from pprint import pprint
GENES = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!."
TARGET = "Hello World!"