Skip to content

Instantly share code, notes, and snippets.

# Make mouse useful in copy mode
set -g mouse on
# Allow mouse to select which pane to use
#set -g mouse-select-pane on
# Allow mouse dragging to resize panes
#set -g mouse-resize-pane on
# Allow mouse to select windows
@Akahadaka
Akahadaka / DateTest.js
Last active October 24, 2017 15:31
Manipulate date formatting
function main(value) {
// Add a fake date since we're just working with time
const epoch = '1970-01-01';
// Convert the given time to a Date Object
dateVal = new Date(`${epoch} ${value}`);
// Manually determine the suffix for "am" or "pm" since I have found no support in JS
ampm = (dateVal.getHours() - 12 < 0) ? 'am' : 'pm';
@Akahadaka
Akahadaka / keybase.md
Created March 20, 2017 11:36
I am Akahadaka on Github & Keybase.

Keybase proof

I hereby claim:

  • I am akahadaka on github.
  • I am akahadaka (https://keybase.io/akahadaka) on keybase.
  • I have a public key ASAw-PHG21MgEwqTURGnifxo3oNZk5uPplALFSTE0Lt48wo

To claim this, I am signing this object:

@Akahadaka
Akahadaka / main.ts
Created September 18, 2016 12:54
Basic starting template for nativescript-angular 0.4.0
// this import should be first in order to load some required settings (like globals and reflect-metadata)
import { platformNativeScriptDynamic, NativeScriptModule } from "nativescript-angular/platform";
import { NgModule } from "@angular/core";
import { AppComponent } from "./app.component";
@NgModule({
declarations: [AppComponent],
bootstrap: [AppComponent],
imports: [NativeScriptModule],
})
@Akahadaka
Akahadaka / .bash_profile
Last active October 24, 2017 15:19
Default UNIX bash profile supporting GIT colours and GIT-flow alias'
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
#Vagrant
export VAGRANT_DEFAULT_PROVIDER=parallels
# Git
export PATH=$PATH:/usr/local/Cellar/git
# Yarn Package Installer
@Akahadaka
Akahadaka / index.html
Last active September 24, 2015 12:17
Basic generic HTM5 template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
<meta name="description" content="Description goes here">
<meta name="author" content="Author(s) name here">