Skip to content

Instantly share code, notes, and snippets.

@petevb
petevb / .bashrc
Last active November 8, 2019 15:31
[Building new machines] #cicd #dev
#!/bin/bash
# alias.sh
shopt -s expand_aliases
# Must set this option, else script will not expand aliases.
alias ll="ls -l"
# May use either single (') or double (") quotes to define an alias.
# twotime: https://www.npmjs.com/package/twotime
@petevb
petevb / dabblet.css
Last active May 13, 2019 09:07
[spinner] #css
/**
* spinner
*/
@keyframes spinner {
to { background-position: -625px 0; }
}
.spinner:before {
position: absolute;
content:'';
top:0;
@petevb
petevb / index.html
Created December 3, 2015 22:53 — forked from anonymous/index.html
JS Bin // source http://jsbin.com/lajuri
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
console.clear();
@petevb
petevb / dabblet.css
Last active May 13, 2019 09:07
[selectors for dummies] #css
/**
* selectors for dummies
*/
/* UNCOMMENT THE .a.a AND IT "TRUMPS" THE .a BELOW IT */
/* I'm first, but have higher specificity (so not overridden)*/
/*.a.a {
color: gold;
}*/
@petevb
petevb / dabblet.css
Last active May 13, 2019 09:07
[specificity for dummies] #css
/*
specificity for dummies
*/
.itemsTable td p.tallRow {
color: red;
}
.tallRow.tallRow.tallRow {
color: gold;
}
// Write code to test your extensions here. Press F5 to compile and run.
void Main()
{
Fetch();
Create();
}
void Fetch()
{
var src = new TtcDBRepository(BaseRepository.LocalEmulator);
@petevb
petevb / ata.json
Last active March 31, 2020 11:33
Visual Studio Code Settings Sync Gist
{
"api": {
"CredentialUserData": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/CredentialUserData",
"support": {
"chrome": {
"version_added": "60"
},
"chrome_android": {
@petevb
petevb / index.html
Created September 18, 2018 12:05
Hierarchical Config// source https://jsbin.com/gudubop
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Hierarchical Config">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@petevb
petevb / Run Visual Studio Code for Linux from WSL.md
Last active May 13, 2019 09:09 — forked from fedme/Run Visual Studio Code for Linux from WSL.md
[Run Visual Studio Code for Linux from WSL on Windows 10] #vscode #dev #wsl

Run Visual Studio Code for Linux from WSL

Thanks a lot to mredbishop and others for their insturctions posted here. This is just a recap of what they figured out.

This process was tested on WSL Ubuntu 18.04.

Install VcXsrv on Windows

  1. Dowload the VcXsrv installer from https://sourceforge.net/projects/vcxsrv/
  2. Install the software on Windows

Add VS Code repositories

@petevb
petevb / Storing-git-Credentials.md
Last active May 13, 2019 09:08 — forked from RichardBronosky/Storing-git-Credentials.md
[Storing git Credentials] #git #dev