Skip to content

Instantly share code, notes, and snippets.

View nimitbhargava's full-sized avatar
💻
Building awesome things

Nimit Bhargava nimitbhargava

💻
Building awesome things
View GitHub Profile
@laribee
laribee / customize.sh
Created March 12, 2017 06:51
Customize Git
#!/bin/bash
git config --global alias.lg \
”log --color --graph \
--pretty=format:’%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit”
git lg
git lg -p
git clone https://github.com/nerdnoir/dockerize-node.git
@deanhume
deanhume / service-worker-notification.js
Created August 3, 2015 10:20
Service Worker Notification Click
self.addEventListener('notificationclick', function(event) {
console.log('On notification click: ', event.notification.tag);
// Android doesn't close the notification when you click on it
// See: http://crbug.com/463146
event.notification.close();
// This looks to see if the current is already open and
// focuses if it is
event.waitUntil(
clients.matchAll({
@aczietlow
aczietlow / selenium-php-webdriver-cheatsheet.md
Last active March 6, 2024 22:48 — forked from huangzhichong/selenium-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver).

Webdriver PHP API workthough

  • Open a browser

    # start an instance of firefox with selenium-webdriver
    
    $browser_type = 'firefox'
    $host = 'http://localhost:4444/wd/hub'
    

$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);