Skip to content

Instantly share code, notes, and snippets.

View stagfoo's full-sized avatar
🎨
Do I Dream of Electric Bugs

Alex King stagfoo

🎨
Do I Dream of Electric Bugs
View GitHub Profile
// All examples of strings saved in variables
var example1 = "Happy am I; from care I'm free!";
var example2 = '"Avast, ye lubbers!" roared the technician.';
var example3 = "45";
var example4 = 'c';
var mushroom = {
'color': 'white',
'type': 'skinny',
'poisonous' true
}
// You can access these later
var isItPoisonous = mushroom.poisonous;
// is it poisonous is now equal to true
@stagfoo
stagfoo / .hyper.js
Last active August 31, 2017 12:14
New Computer Configs
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 16,
// font family with optional fallbacks
fontFamily: 'Fira Code, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
{"meta":{"identifier":"BAZZA_EXPORT","type":"ALL","date":"Sun Aug 13 2017 08:13:27 GMT+0900 (JST)"},"data":[{"marks":[{"favIconUrl":"https://ae01.alicdn.com/images/eng/wholesale/icon/aliexpress.ico","hostname":"www.aliexpress.com","title":"Phone - Nexus 5x $250","type":"TAB","url":"https://www.aliexpress.com/item/Original-LG-Nexus-5X-H791-International-Version-5-2-inch-12MP-16-32GB-ROM-2GB-RAM/32652489721.html?spm=2114.01010208.3.1.cZNklA&ws_ab_test=searchweb0_0,searchweb201602_1_10152_10065_10151_10068_5010016_10136_10137_10060_10138_10155_10062_437_10154_10056_10055_10054_10059_303_100031_10099_10103_10102_10096_10052_10053_10142_10107_10050_10051_5030016_10084_10083_10080_10082_10081_10110_519_10175_10111_10112_10113_10114_10182_10078_10079_10073_10123_10189_142,searchweb201603_9,ppcSwitch_5&btsid=d4c90ba2-a5cf-42c8-a449-0f4fdef07abe&algo_expid=94a8cf06-8e9e-4d7a-8667-9332cf76f1a5-0&algo_pvid=94a8cf06-8e9e-4d7a-8667-9332cf76f1a5"},{"favIconUrl":"https://www.amazon.com/favicon.ico","groupId":0,"hostname":"w
@stagfoo
stagfoo / .zshrc
Last active February 19, 2018 00:20
simple npm bash
# 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/alexander.king/.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="metoer"
@stagfoo
stagfoo / init.vim
Last active December 10, 2017 21:40
vim-config
"No compatibility to traditional vi
set nocompatible
"vim-plug
call plug#begin('~/.config/nvim/plugged')
"Plugin list ------------------------------------------------------------------
Plug 'achimnol/python-syntax'
@stagfoo
stagfoo / Card.ts
Last active December 29, 2017 00:38
Call a class inside another class constructor
const yo = require('yo-yo');
import Title from '../Title/Title';
import Soshi from '../core'
class Card extends Soshi {
el: HTMLElement;
props: {
title: string,
image: string,
text: string
@stagfoo
stagfoo / .hyper.js
Last active May 1, 2018 08:25
Work Computer Fish, hyper and vscode
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
<?php
function form_endpoint($data) {
$args = array(
'ID' => $data['ID'],
'post_type' => array('wpcf7_contact_form')
);
// The Query
@stagfoo
stagfoo / bspwmrc
Last active October 9, 2019 23:53
New Rice
#! /bin/sh
sxhkd & polybar bar &
bspc monitor -d I II III IV V
bspc config border_width 5
bspc config window_gap 12
bspc config top_padding 60
bspc config bottom_padding 48