This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
let instance = axios.create(); | |
instance.defaults.baseURL = 'xxx.teamwork.com' | |
instance.defaults.headers.common['Authorization'] = 'Bearer XXX'; | |
export default instance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-underscore-dangle */ | |
export default (computedName) => ({ | |
watch: { | |
// We add in a mechanism to delay re-render of this component | |
// depending on derived reactive data. | |
[computedName](val) { | |
const render = this._watcher; | |
if (render && val) { | |
this._suspendGetter = render.getter; | |
render.getter = () => { render.dirty = true; }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Z-index mapping: Correctly place your variable in the correct position based on what it should appear above and behind. | |
// Example usage: z-index: z(header); | |
$z-list: ( | |
highest, | |
lowest | |
); | |
@function z($var) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// how_much_netflix.js | |
// A script that looks through your Netflix viewing activity and | |
// tallys up how much time you've spent watching Netflix | |
// | |
// INSTRUCTIONS TO USE: | |
// Open https://www.netflix.com/WiViewingActivity and the developer console | |
// Copy and paste this script into the developer console and press enter | |
// | |
(function() { | |
var fetchAllViewedItems = function() { |
Install terminal-notifier
via homebrew: https://github.com/julienXX/terminal-notifier
If using zsh, create an alias:
alias -g holler="echo 'holler' | terminal-notifier -sound default"
Store it in ./zshrc
if you're happy with it!
Now you can run
bundle exec rspec ; holler
and it will make a notification that says "holler" when your tests are done.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
atom-workspace-axis.vertical atom-pane { | |
flex-direction: row; | |
.tab-bar:not(:empty) { | |
box-shadow: inset -1px 0 0 #181a1f; | |
resize: horizontal; | |
height: auto; | |
display: block; | |
padding-right: 1px; | |
padding-bottom: 3em; | |
min-width: 14em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Updates the passed dialog to retain focus and restore it when the dialog is closed. Won't | |
* upgrade a dialog more than once. Supports IE11+ and is a no-op otherwise. | |
* @param {!HTMLDialogElement} dialog to upgrade | |
*/ | |
var registerFocusRestoreDialog = (function() { | |
if (!window.WeakMap || !window.MutationObserver) { | |
return function() {}; | |
} | |
var registered = new WeakMap(); |
A simple App using Vue.js & Firebase with Auth.
See the DEMO.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Description Add the below To any Foundation 6 theme and change the iniialUlClass to whatever your tab ul class is. | |
## Author : Daniel Coull <[email protected]> | |
var tabsToAccordian = { | |
initialUlClass: '.easytabs', | |
accordian: null, | |
tabs:null, |
NewerOlder