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';
<!DOCTYPE html>
<html>
<head>
<title>HTML iframe Tag</title>
</head>
<body>
<h1>HTML5 Tutorial</h1>
<iframe src = " https://www.tutorialspoint.com/html5/html5_tutorial.pdf" style="width:500px; height:300px;"></iframe>
</body>
</html>
@kelvinninja1
kelvinninja1 / export-from-json-example.markdown
Created August 15, 2021 03:27
Export-From-JSON Example
@kelvinninja1
kelvinninja1 / index.html
Created August 15, 2021 00:13
Simple Windows 11 UI
<div class="taskbar">
<img src="https://i.ibb.co/J5P7Y39/icons.png" alt="taskbarcenter">
<img class="right" src="https://i.ibb.co/hB9wF0j/taskbarright.png" alt="taskbarright">
</div>
<div class="startmenu">
<img src="https://i.ibb.co/PtfvNSt/start-menu.png" alt="startmenu">
</div>
@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 / index.html
Created September 28, 2020 01:59
React Welcome
<div id="root"></div>