View htmlEntities.js
function htmlEntities(str) {
return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
echo "removeing evaluation key"
rm ~/.IntelliJIdea15/config/eval/idea15.evaluation.key
echo "resetting evalsprt in options.xml"
sed -i '/evlsprt/d' ~/.IntelliJIdea15/config/options/options.xml
echo "resetting evalsprt in prefs.xml"
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml
View cloudSettings
View App.js
// App.js
<div id="app">
import Messages from './components/Messages'
import store from './vuex/store'
View gist:a61da03845763484b7ef90817457f886
var container = $('div'),
scrollTo = $('#row_8');
scrollTo.offset().top - container.offset().top + container.scrollTop()
// Or you can animate the scrolling:
scrollTop: scrollTo.offset().top - container.offset().top + container.scrollTop()
View .editorconfig vue
# 최 상위 EditorConfig 파일
root = true
# 모든 파일에 유닉스 스타일의 줄바꿈과 파일 끝을 지정합니다
end_of_line = lf
insert_final_newline = true
# 여러 유형의 확장자에 대한 기본 문자열 설정을 합니다
View scrollToElement.js
function findPos (obj) {
let curtop = 0
if (obj.offsetParent) {
do {
curtop += obj.offsetTop
obj = obj.offsetParent
} while (obj)
return [curtop]
View deploy.rb
require 'mina/rails'
require 'mina/git'
require 'mina/rvm'
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
# branch - Branch name to deploy. (needed by mina/git)