Skip to content

Instantly share code, notes, and snippets.

View hsuh's full-sized avatar
🦕

Hsu Hlaing hsuh

🦕
  • Edinburgh
  • 22:30 (UTC -12:00)
View GitHub Profile
@hsuh
hsuh / README.md
Last active August 29, 2015 14:18 — forked from mbostock/.block
@hsuh
hsuh / README.md
Last active October 19, 2022 04:53 — forked from pasela/README.md

A soft pastel color theme for mintty

This is ported version of color theme xoria256.

screenshot

Settings

Merge mintty-color-xoria256-rc into your .minttyrc

QUnit.begin(function(obj) {
console.log("Test amount:" + obj.totalTests);
});
QUnit.moduleStart(function (obj) {
console.log("##teamcity[testSuiteStarted name='" + obj.name + "']");
});
QUnit.moduleDone(function (obj) {
console.log("##teamcity[testSuiteFinished name='" + obj.name + "']");
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.27.1"></script>
<style type="text/css">
div.tooltip {
position: absolute;
text-align: center;
width: 60px;
@hsuh
hsuh / index.html
Last active August 29, 2015 14:02 — forked from mbostock/.block
Force layout with tooltips
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.1.3"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.1.3"></script>
<style type="text/css">
.link {
stroke: #ccc;
@hsuh
hsuh / index.html
Last active August 29, 2015 14:02 — forked from biovisualize/index.html
A simple tooltip
<!DOCTYPE html>
<html >
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<div class="example_div"></div>
<script type="text/javascript">
var tooltip = d3.select("body")
.append("div")