Skip to content

Instantly share code, notes, and snippets.

View heggy231's full-sized avatar
🎯
Focusing

Heggy Here heggy231

🎯
Focusing
  • San Francisco, Bay Area
View GitHub Profile
@heggy231
heggy231 / install.sh
Created August 23, 2021 01:53 — forked from coryhouse/install.sh
Dependencies for React Auth0 on Pluralsight - Last Updated 7/15/2020
npm install auth0-js@9.13.4 auth0-lock@11.25.1 express@4.17.1 express-jwt@5.3.1 express-jwt-authz@1.0.0 jwks-rsa@1.3.0 npm-run-all@4.1.5 react-router-dom@5.2.0
var OAuth = require('oauth')
// `npm install oauth` to satisfy
// website: https://github.com/ciaranj/node-oauth
var KEY = "<INSERT KEY HERE>"
var SECRET = "<INSERT SECRET HERE>"
var oauth = new OAuth.OAuth(
'http://api.thenounproject.com',
'http://api.thenounproject.com',
@heggy231
heggy231 / fetch-api-examples.md
Created July 12, 2021 04:43 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
@heggy231
heggy231 / Leetcode two sum solution.js
Last active July 6, 2021 02:10 — forked from MohammedBakr44/Leetcode two sum solution.js
Javascript leetcod two sum brute force O(N^2)
/**
* @param {number[]} nums
* @param {number} target
* @return {number[]}
*/
var twoSum = function(nums, target) {
for (var i = 0; i < nums.length; i++) {
for (var j = i + 1; j < nums.length; j++) {
# 1. The dictionary Junior shows a schedule for a junior year semester.
# The key is the course name and the value is the number of credits.
# Find the total number of credits taken this semester and assign it to the variable credits.
# Do not hardcode this – use dictionary accumulation!
Junior = {'SI 206':4, 'SI 310':4, 'BL 300':3, 'TO 313':3, 'BCOM 350':1, 'MO 300':3}
credits = 0
for v in Junior.values():
credits += v
print(credits)
@heggy231
heggy231 / .env
Created June 12, 2021 01:24 — forked from prappo/.env
env file for Laravel postgresql database
APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:hyHUpukUUigKeEsxpGeTW4UZ+Lg+WAWxcc4/BjlgNtE=
APP_URL=http://localhost
DB_CONNECTION=pgsql
DB_HOST=hostname
DB_PORT=5432
DB_DATABASE=Your database name
DB_USERNAME=Your database username
var cornify_count = 0;
var cornify_add = function() {
cornify_count += 1;
var cornify_url = 'http://www.cornify.com/';
var div = document.createElement('div');
div.style.position = 'fixed';
var numType = 'px';
var heightRandom = Math.random()*.75;
var windowHeight = 768;
@heggy231
heggy231 / .gitignore
Last active July 20, 2021 15:35 — forked from andreasonny83/.gitignore
Gitignore template for JavaScript projects vscode env system
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
@heggy231
heggy231 / .gitignore
Last active April 1, 2021 14:05 — forked from octocat/.gitignore
Some common .gitignore configurations
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json