Skip to content

Instantly share code, notes, and snippets.

View mkhb654's full-sized avatar
🎯
Focusing

Muntaz Kaleem mkhb654

🎯
Focusing
View GitHub Profile
@mkhb654
mkhb654 / Condition.sol
Created October 28, 2017 16:29 — forked from anonymous/Condition.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.18+commit.9cf6e910.js&optimize=undefined&gist=
contract SomeContrac {
unit someVar;
function getMyVar() constant return (string){
if(someVar> 2){
return("greater bro", someVar);
}else if (somevar == 2) {
return ("is exactly two", somevar);
}else {
return("is smaller two" somevar);
@ericpkatz
ericpkatz / index.html
Created May 28, 2015 00:04
JS Bin CE 9053 - One // source http://jsbin.com/zuriqa
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="CE 9053 - One">
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<h1>Hello World</h1>
@chrisdarroch
chrisdarroch / idea
Created October 17, 2013 03:40
Open a project in IntelliJ IDEA from your command line!
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`
@bootstraponline
bootstraponline / appium_android.bash
Last active December 17, 2015 08:29
Start appium from source, open emulator, and cd into test folder.
# code goes in ~/.bash_profile
# tested on OS X
export APPIUM_HOME="$HOME/Desktop/appium"
export TEST_HOME="$HOME/path/to/tests"
export APPIUM_AVD="t18"
function three {
# does node exist?
[[ $(ps axo pid,command | grep "[0-9]\+ node" | wc -l) -gt 0 ]] && \
@huangzhichong
huangzhichong / selenium-webdriver-cheatsheet.md
Created August 7, 2012 12:38
Selenium Webdriver CheatSheet

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL