Skip to content

Instantly share code, notes, and snippets.

View szymonskirgajllo's full-sized avatar

Szymon Skirgajłło szymonskirgajllo

  • RST Software Masters
  • Świdnica/Wrocław, Poland
View GitHub Profile
ES5:
function multiply(a, b) {
var b = typeof b !== 'undefined' ? b : 1;
return a * b;
}
ES6:
function multiply(a, b = 1) {
@szymonskirgajllo
szymonskirgajllo / command.sh
Created July 18, 2016 07:15 — forked from sponomarev/command.sh
Remove iTerm2 icon from Dock
# remove
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
# restore
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist
@szymonskirgajllo
szymonskirgajllo / git_remove_old_branches_v1.sh
Created May 21, 2015 21:08
First version of the script to remove old branches in git
#!/bin/bash
branch=develop
export partOfYourMail=skirgaj
export howLong=1
export type=weeks
echo "Type branch which you want to check -> "
read branch
echo "Type part of your email -> "
public function testGetSomething()
{
$this->assertEquals(10, $class->getSomething());
}
$this->dbConnectionMock = $this->prophesize('\Doctrine\DBAL\Connection');
$this->dbConnectionMock->update()->willReturn(10);

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

Memcached widget for Dashing

Description

Memcached dashing widget to display the number of connected clients to one or more memcached servers, as well as the instance memory usage.

Dependencies

Redis widget for Dashing

Description

Redis dashing widget to display the number of connected clients to a redis server, as well as the instance memory usage.

Dependencies

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields