let media = $('#vjs_video_3_html5_api')[0].src;
copy(media)
The following document is a written account of the Web Dev Academy screencasting framework, based on Code School's framework. It should be used as a reference for our video tutorials.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
/** | |
* WIP | |
* Custo Total / (100% - ( % taxa adm + % margem + % imposto) | |
*/ | |
const calcFinalPrice = function(cost = 0.0, adm = 0.0, profit = 0.0, tax = 0.0) { | |
} |
#resize window to size | |
wmctrl -l | |
wmctrl -ir <id> -e 0,960,0,1280,720 |
const insertionSort = function(A) { | |
for (let j = 1; j <= A.length; j++) { | |
let key = A[j]; | |
let i = j-1; | |
while (i >= 0 && A[i] > key) { | |
A[i+1] = A[i]; | |
i = i-1; | |
A[i+1] = key; | |
} |
Install WMCtrl:
$ sudo apt-get install wmctrl
Use this format to resize windows in desktop:
wmctrl -r :ACTIVE: -e g,x,y,w,h
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
... | |
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modal-exemplo"> | |
Abrir modal | |
</button> | |
... |
<div class="modal fade" id="modal-exemplo"> | |
<div class="modal-dialog"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal"> | |
<span>×</span> | |
</button> | |
<h4 class="modal-title">Titulo do Modal</h4> | |
</div> |
(function($){ | |
nomeDaFuncao = function() { | |
// seu codigo aqui | |
}; | |
})(jQuery); |