This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
function slugify(text) | |
{ | |
return text.toString().toLowerCase() | |
.replace(/\s+/g, '-') // Replace spaces with - | |
.replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
.replace(/\-\-+/g, '-') // Replace multiple - with single - | |
.replace(/^-+/, '') // Trim - from start of text | |
.replace(/-+$/, ''); // Trim - from end of text | |
} |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g
. Once you're finished, you also won't need to use sudo
to install npm modules globally.
// store/modules/user/UserStore.js | |
export default { | |
state: { | |
user: user, | |
}, | |
actions: { | |
getCurrentUser : ({commit}) => { | |
Vue.http.get(Vue.action('User\UserController@index')).then((response) => { | |
commit('SET_USER', response.data); | |
}, (errors) => { |
router.afterEach((to, from) => { | |
(function(i, s, o, g, r, a, m) { | |
i['GoogleAnalyticsObject'] = r; | |
i[r] = i[r] || function() { | |
(i[r].q = i[r].q || []).push(arguments) | |
}, i[r].l = 1 * new Date(); | |
a = s.createElement(o), | |
m = s.getElementsByTagName(o)[0]; | |
a.async = 1; | |
a.src = g; |
{ | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.snippetSuggestions": "top", | |
"editor.formatOnPaste": true, | |
"editor.fontFamily" : "Fira Code", | |
"editor.fontLigatures": true, | |
"emmet.triggerExpansionOnTab": true, | |
"php.suggest.basic": false, | |
"editor.autoIndent": true, | |
"emmet.includeLanguages" : { |
echo "updaing ubuntu..." | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install git -y | |
# python 3.8 | |
echo "installing Python 3.8 ..." | |
sudo apt-get -y install gcc binutils | |
sudo apt-get update |