View gist:a61da03845763484b7ef90817457f886
var container = $('div'),
scrollTo = $('#row_8');
container.scrollTop(
scrollTo.offset().top - container.offset().top + container.scrollTop()
);
// Or you can animate the scrolling:
container.animate({
scrollTop: scrollTo.offset().top - container.offset().top + container.scrollTop()
View .editorconfig vue
# 최 상위 EditorConfig 파일
root = true
# 모든 파일에 유닉스 스타일의 줄바꿈과 파일 끝을 지정합니다
[*]
end_of_line = lf
insert_final_newline = true
# 여러 유형의 확장자에 대한 기본 문자열 설정을 합니다
[*.{js,py}]
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)
View build.sh
react-native bundle --dev false --platform ios --entry-file index.ios.js --bundle-output ../main.jsbundle --minify
View currencyData.json
[
{
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"delimiter": ",",
"separator": ".",
View MainView.js
'use strict';
import React from 'react-native';
const {
StyleSheet,
Text,
View,
ListView,
TouchableHighlight
} = React;
View index.ios.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View PlayState.hx
package;
import flixel.FlxG;
import flixel.FlxState;
import flixel.addons.weapon.FlxBullet;
import flixel.addons.weapon.FlxWeapon;
import flixel.util.FlxColor;
/**
* A FlxState which can be used for the actual gameplay.