Skip to content

Instantly share code, notes, and snippets.

View kelvinninja1's full-sized avatar

Kelvin Morrison kelvinninja1

View GitHub Profile
@kelvinninja1
kelvinninja1 / Media Queries
Created December 29, 2021 17:45 — forked from shelooks16/Media Queries
breakponts all types for media queries
/* smartphones, iPhone, portrait 480x320 phones */
/* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
/* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
/* tablet, landscape iPad, lo-res laptops ands desktops */
/* big landscape tablets, laptops, and desktops */
/* hi-res laptops and desktops */
@media (min-width:320px) {}
@media (min-width:481px) {}
@media (min-width:641px) {}
@media (min-width:961px) {}
@kelvinninja1
kelvinninja1 / .prettierrc
Created December 29, 2021 17:45 — forked from shelooks16/.prettierrc
Prettier
{
"trailingComma": "none",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"arrowParens": "always"
}
@kelvinninja1
kelvinninja1 / .eslintrc
Created December 29, 2021 17:44 — forked from shelooks16/.eslintrc
Tic Tac Toe
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"prettier"
],
"env": {
"browser": true
},
@kelvinninja1
kelvinninja1 / settings.json
Created December 29, 2021 17:37 — forked from shelooks16/settings.json
Vscode configuration
{
// security trust window, open = not shown
"security.workspace.trust.untrustedFiles": "open",
// configure git-bash (windows-only for git-bash users)
"terminal.integrated.profiles.windows": {
"Git Bash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": ["-l", "-i"]
}
@kelvinninja1
kelvinninja1 / test.js
Created October 12, 2021 16:40 — forked from jmyrland/test.js
Socket-io load test?
/**
* Modify the parts you need to get it working.
*/
var should = require('should');
var request = require('../node_modules/request');
var io = require('socket.io-client');
var serverUrl = 'http://localhost';
@kelvinninja1
kelvinninja1 / dydxFlashLoanTemplate.sol
Created August 2, 2021 06:26 — forked from cryptoscopia/dydxFlashLoanTemplate.sol
A single-file simplest possible template for a contract that obtains a flash loan from dydx, does things, and pays it back.
// SPDX-License-Identifier: AGPL-3.0-or-later
// The ABI encoder is necessary, but older Solidity versions should work
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
// These definitions are taken from across multiple dydx contracts, and are
// limited to just the bare minimum necessary to make flash loans work.
library Types {
enum AssetDenomination { Wei, Par }
@kelvinninja1
kelvinninja1 / .gitignore
Created July 3, 2020 20:52 — forked from FullStackForger/.gitignore
.gitignore for Unity3d project
###
# Unity folders and files
###
[Aa]ssets/AssetStoreTools*
[Bb]uild/
[Ll]ibrary/
[Ll]ocal[Cc]ache/
[Oo]bj/
[Tt]emp/
[Uu]nityGenerated/
@kelvinninja1
kelvinninja1 / arduino_serial_monitor.py
Created July 18, 2018 11:25 — forked from otomura/arduino_serial_monitor.py
Arduino serial monitor web server on RaspberryPi
import flask
import serial
app = flask.Flask(__name__)
arduino_serial = serial.Serial('/dev/ttyACM0', 9600)
def event_stream():
while True:
yield "data: " + arduino_serial.readline() + "\n\n"
@kelvinninja1
kelvinninja1 / enrixpad
Last active July 10, 2018 16:35 — forked from Enrix835/enrixpad
a simple text editor written in python
#enrixpad 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, or
#(at your option) any later version.