Skip to content

Instantly share code, notes, and snippets.

@dearfrankg
dearfrankg / .zshrc-backup
Created January 24, 2019 06:14
.zshrc-backup
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/frankg/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
###########################################################
## CUSTOM ZSH CONFIG FOR FRANKG
## ALIASES
## EDITOR
alias vs='code'
## CUSTOM_ZSH
CUSTOM_ZSH=~/.zsh_custom/zsh_custom
@dearfrankg
dearfrankg / none
Created January 23, 2019 16:46
vs-code config
{
// workbench
"window.zoomLevel": 1,
"workbench.colorTheme": "DesertEx",
"workbench.iconTheme": "vscode-icons",
"workbench.fontAliasing": "antialiased",
"workbench.startupEditor": "newUntitledFile",
"debug.toolBarLocation": "docked",
// file explorer
"explorer.openEditors.visible": 0,
@dearfrankg
dearfrankg / .gitconfig
Created January 23, 2019 16:43
gitconfig
[credential]
helper = osxkeychain
useHttpPath = true
#
# GIT CONFIG FILE`
#
## GATHER FROM ONLINE: https://goo.gl/2knYDc
@dearfrankg
dearfrankg / query.sql
Created December 17, 2018 03:31
SQL Query Question
/* return highest salary, employee name, deparment name for each department */
/*
+----------------------+
| Tables_in_employees |
+----------------------+
| current_dept_emp |
| departments |
@dearfrankg
dearfrankg / components GithubRepos.js
Last active November 16, 2018 13:46
intro-to-next-part2 -- mock data
...
import { MOCK_URL } from "../mock/config.json";
const API_URL = MOCK_URL
? MOCK_URL
: `https://api.github.com/search/repositories?q=stars:>1+language:javascript&sort=stars&order=desc&type=Repositories`;
...
@dearfrankg
dearfrankg / mock config.json
Created November 16, 2018 13:44
intro-to-next-part2 -- mock data
{
"MOCK_URL": "http://localhost:3333/search/repositories"
}
@dearfrankg
dearfrankg / GithubRepos.js
Last active November 16, 2018 09:25
intro-to-next-part2 -- app version 2
import React, { Component } from "react";
import axios from "axios";
import { Table, Pane, Spinner } from "evergreen-ui";
const Repo = ({ repo, index }) => (
<Table.Row key={index} isSelectable onSelect={() => alert(repo.name)}>
<Table.TextCell>{index + 1}</Table.TextCell>
<Table.TextCell flexBasis="25vw">
<span className="repo-name">{repo.name}</span>
</Table.TextCell>
@dearfrankg
dearfrankg / components-GitubRepos.js
Last active November 16, 2018 08:40
intro-to-next-part2 -- app version 1
import React, { Component } from "react";
import PropTypes from "prop-types";
import axios from "axios";
const Repo = ({ repo, index }) => (
<tr>
<td>{index + 1}</td>
<td className="repo-name">{repo.name}</td>
<td>{repo.stargazers_count} Stars</td>
<style jsx>{`
@dearfrankg
dearfrankg / index.html
Created November 11, 2018 23:42
YouTube OAuth Access
<script>
var GoogleAuth;
var SCOPE = "https://www.googleapis.com/auth/youtube.force-ssl";
function handleClientLoad() {
// Load the API's client and auth2 modules.
// Call the initClient function after the modules load.
gapi.load("client:auth2", initClient);
}
function initClient() {