Skip to content

Instantly share code, notes, and snippets.

View Shestac92's full-sized avatar
🏠
Working from home

Alexander Shestakov Shestac92

🏠
Working from home
View GitHub Profile
@Shestac92
Shestac92 / app.js
Created September 26, 2017 06:18
TS-316
function setColClass(e) {
var t, a = e.find(".col-sm-4").length,
i = e.find(".col-sm-4").last().index();
if (3 !== a) {
if (a > 3)
for (; a > 3;) a -= 3;
for (t = 12 / a; a;) --a, e.find($("[class*='col-sm-']")).eq(i - a).removeClass("col-sm-4").addClass("col-sm-" + t)
}
}
@Shestac92
Shestac92 / exampl.html
Created September 27, 2017 05:45
Case 3660
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="https://cdn.anychart.com/js/7.14.3/anychart-bundle.min.js"></script>
<script src="https://cdn.anychart.com/js/7.14.3/data-adapter.min.js"></script>
<link rel="stylesheet" href="https://cdn.anychart.com/css/7.14.3/anychart-ui.min.css" />
<style>
html, body, #container {
@Shestac92
Shestac92 / ACCedited.csv
Last active October 3, 2017 08:50
TS-316 option 1
Date Open Price High Price Low Price Close Price Turnover
2015-10-01 1354.5 1375 1352 1363.1 198099089.7
2015-10-05 1372.2 1378 1362.1 1369.7 242138483.8
2015-10-06 1377 1380 1343 1350.4 388755644.2
2015-10-07 1353.5 1357 1329.2 1352.25 335672221.4
2015-10-08 1354 1361.5 1345 1356.2 279707161.3
2015-10-09 1363.2 1384.8 1342 1347.35 271566246.3
2015-10-12 1350 1359.95 1340.6 1344.35 282407292.3
2015-10-13 1344.35 1358 1343 1352.2 304851856.5
2015-10-14 1352 1378 1351.9 1376.25 320439915.2
@Shestac92
Shestac92 / Help.html
Created October 3, 2017 08:57
TS-316 option 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Technical Indicators</title>
<!-- Normalize CSS -->
@Shestac92
Shestac92 / app.js
Created October 9, 2017 03:58
TS-316 show/hide
function setColClass(e) {
var t, a = e.find(".col-sm-4").length,
i = e.find(".col-sm-4").last().index();
if (3 !== a) {
if (a > 3)
for (; a > 3;) a -= 3;
for (t = 12 / a; a;)--a, e.find($("[class*='col-sm-']")).eq(i - a).removeClass("col-sm-4").addClass("col-sm-" + t)
}
}
public class FunnelChartActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_chart_common);
AnyChartView anyChartView = findViewById(R.id.any_chart_view);
Funnel funnel = AnyChart.funnel();
@Shestac92
Shestac92 / simple-stock-chart.js
Created March 7, 2018 09:34
Stock_chart_modified
import Ember from 'ember';
export default Ember.Route.extend({
// chart instance
chart: undefined,
model: function() {
let self = this;
// load data from file
function createProcessor(strings, ...args) {
return function(...symbols){
return args.map(i => `${strings[i]}${symbols[i] || ' '}`).join('');
};
}
const processor = createProcessor`this${0}is${1}fucking${2}awesome${3}`;
console.log(processor(' q ', ' w ', ' e ', ' r '));
function createProcessor(strings, ...args) {
return function (...symbols) {
let str = '';
for (let i = 0; i < args.length; i++) {
str += `${strings[i]}`;
if (symbols[i] || symbols[i] === 0)
str += `${symbols[i]}`;
}
return str;
};
@Shestac92
Shestac92 / barChart
Created November 22, 2019 04:45
Bar chart with conditional coloring
AnyChartView anyChartView = findViewById(R.id.any_chart_view);
Cartesian cartesian = AnyChart.bar(); //Anychart Bar returns the Cartesian Object
cartesian.animation(true);
cartesian.title("Persönliche Auswertung - Motivationprofil");
cartesian.padding(10d, 20d, 5d, 20d);
cartesian.yScale().stackMode(ScaleStackMode.VALUE);
cartesian.yAxis(0).labels().format(
"function() {return Math.abs(this.value);}");
cartesian.xAxis(1)
.enabled(true)