Skip to content

Instantly share code, notes, and snippets.

View tamascsaba's full-sized avatar

Csaba Tamás tamascsaba

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.25.0"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
</head>
<body>
<div id="chart"></div>

This variation of a donut chart demonstrates how to add labels with lines and also works with missing/new data. Clicking on the button changes the displayed data.

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

[global_config]
enabled_plugins = CustomCommandsMenu, InactivityWatch, TestPlugin, ActivityWatch, TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, MavenPluginURLHandler, LaunchpadBugURLHandler, LayoutManager
title_transmit_bg_color = "#832527"
[keybindings]
[profiles]
[[default]]
scrollback_lines = 4000
[layouts]
[[default]]
[[[child1]]]
@tamascsaba
tamascsaba / ngrxintro.md
Created May 10, 2016 09:23 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
@tamascsaba
tamascsaba / mac_xwindows_x11_xvfb_headless_firefox_howto.md
Created September 29, 2016 13:04 — forked from textarcana/mac_xwindows_x11_xvfb_headless_firefox_howto.md
Headless Selenium on CentOS 6.3 (Mac XWindows / X11 / Xvfb / Headless Firefox / Selenium howto)

XWindows for Headless Selenium

X Wing art by Paul Harckham

How to set up a Headless Selenium Testing environment for CentOS 6.3.

On your CentOS 6.3 host

Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.

@tamascsaba
tamascsaba / FooComponent.ts
Last active June 29, 2021 09:13
Angular scroll performance tuning
import {fromEvent} from 'rxjs/observable/fromEvent';
import {animationFrame} from 'rxjs/scheduler/animationFrame';
export class FooComponent implements AfterViewInit {
....
ngAfterViewInit() {
// Angular scroll performance tuning
this.zone.runOutsideAngular(() => {
fromEvent(window, 'scroll').subscribe(() => {
animationFrame.schedule(() => {
const request = require('request');
const listID = 'PLXqGVIkwHK4IpJPTd7s88fqyjjYB2g8yo'
const listUrl = 'https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&key=AIzaSyAvNgxcJ67EZuioDBOuQffHkQa4qBv_eCI&playlistId=' + listID;
request.get(listUrl, (e, res, b) => {
if (!e && res.tatusCode == 200) {
console.log(b);
}
for(const item of b.items) {
const id = item.snippet.resourceId.videoId;
{"lastUpload":"2021-07-20T12:46:17.126Z","extensionVersion":"v3.4.3"}
.env files support
.ignore
Angular CLI QuickSwitch
Angular Component Folding
Angular Material 2, Flex layout 1, Teradata Covalent 1 & Material icon live templates
Angular Templates
Atom Material Icons
CamelCase
Conventional Commit
Embedded Web Browser