Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
GameDev by night

Ajinkya Borade steelx

🎮
GameDev by night
View GitHub Profile
@keeguon
keeguon / countries.json
Created Apr 5, 2012
A list of countries in JSON
View countries.json
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@bradtraversy
bradtraversy / vscode_shortcuts.md
Last active Oct 2, 2022
Helpful shortcuts for VSCode
View vscode_shortcuts.md

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@afternoon
afternoon / rename_js_files.sh
Created Feb 15, 2014
Rename .js files to .ts
View rename_js_files.sh
find app/src -name "*.js" -exec sh -c 'mv "$0" "${0%.js}.ts"' {} \;
@vsouza
vsouza / .bashrc
Last active Sep 29, 2022
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
View .bashrc
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@rounakdatta
rounakdatta / esp32_ota_stm32.ino
Created Sep 6, 2019
Flash STM32 firmware from ESP32
View esp32_ota_stm32.ino
#include <SPIFFS.h>
/*
*
* Copyright (C) 2017 CS.NOL https://github.com/csnol/1CHIP-Programmers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,
* and You have to keep below webserver code
@staltz
staltz / introrx.md
Last active Sep 28, 2022
The introduction to Reactive Programming you've been missing
View introrx.md
@LukeMathWalker
LukeMathWalker / audit-on-push.yml
Last active Sep 28, 2022
GitHub Actions - Rust setup
View audit-on-push.yml
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
@mauricedb
mauricedb / Subject under test
Last active Sep 27, 2022
Testing stateful React hooks
View Subject under test
import { useState } from 'react';
export function useCounter(initial = 0) {
const [count, setCount] = useState(initial);
return [count, () => setCount(count + 1)];
}
@hubgit
hubgit / SelectField.tsx
Last active Sep 23, 2022
Use react-select with Formik
View SelectField.tsx
import { FieldProps } from 'formik'
import React from 'react'
import Select, { Option, ReactSelectProps } from 'react-select'
export const SelectField: React.SFC<ReactSelectProps & FieldProps> = ({
options,
field,
form,
}) => (
<Select
@ebraminio
ebraminio / upload.go
Last active Sep 22, 2022
golang upload client and server
View upload.go
// curl -X POST -H "Content-Type: application/octet-stream" --data-binary '@filename' http://127.0.0.1:5050/upload
package main
import (
"fmt"
"io"
"net/http"
"os"
"time"