Skip to content

Instantly share code, notes, and snippets.

View Qambar's full-sized avatar

UncleAaroh.eth Qambar

  • Remote
  • 19:34 (UTC)
View GitHub Profile
@Qambar
Qambar / NFT_PRESALE_MERKLETREE.sol
Last active August 12, 2022 14:41
Hashlips contract modified to work with merkle tree
// SPDX-License-Identifier: GPL-3.0
// # # #
// # # # # #### # ###### # # ## ##### #### # #
// # # ## # # # # # # # # # # # # # # #
// # # # # # # # ##### # # # # # # # # ######
// # # # # # # # # ####### ###### ##### # # # #
// # # # ## # # # # # # # # # # # # # #
// ##### # # #### ###### ###### # # # # # # #### # #
// Amended by HashLips, improved by Uncle Aaroh !
name ring quadrant isNew description
Appium adopt tools FALSE ppium is an open-source tool for automating native, mobile web, and hybrid applications on iOS mobile, Android mobile, and Windows desktop platforms. Native apps are those written using the iOS, Android, or Windows SDKs. Mobile web apps are web apps accessed using a mobile browser (Appium supports Safari on iOS and Chrome or the built-in 'Browser' app on Android). Hybrid apps have a wrapper around a "webview" -- a native control that enables interaction with web content.
Swift adopt languages & frameworks FALSE Apple's programming language for building iOS applications.
Cucumber adopt tools FALSE Cucumber is a software tool used by computer programmers for testing other software.[7] It runs automated acceptance tests written in a behavior-driven development (BDD) style. Central to the Cucumber BDD approach is its plain language parser called Gherkin.
Page Object Pattern adopt techniques FALSE Page Object Model is a design pattern which has beco
docker-machine start # Start virtual machine for docker
docker-machine env # It's helps to get environment variables
eval "$(docker-machine env default)" # Set environment variables
@Qambar
Qambar / mqtt.clj
Created May 1, 2017 19:00 — forked from fsmunoz/mqtt.clj
Simple example of MQTT message publishing using Clojure and the Eclipse Paho libraries
;; Simple example of MQTT message publish using Clojure
;;
;; Uses the Websphere Eclipse Paho client
;;
;; Author: Frederico Munoz <[email protected]>
;; Date: 18-Jun-2013
;; Keywords: mqtt, messaging, m2m, telemetry, clojure, iot, paho
;;
;; Copying and distribution of this file, with or without modification,
;; are permitted in any medium without royalty provided the copyright
@Qambar
Qambar / Clojure.sublime-settings
Created April 28, 2017 08:02 — forked from arnaudsj/Clojure.sublime-settings
Sublime Text 3: Clojure
// installed Clojure packages:
//
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
{
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,
@Qambar
Qambar / gist:27732658727f2ed2066cc6d0e2bed263
Created January 12, 2017 12:18 — forked from bpsm/gist:1858654
g[un]zip input to output
(ns clj-gunzip.core
(:require [clojure.java.io :as io])
(:require [clojure.string :as str])
(:import java.util.zip.GZIPInputStream
java.util.zip.GZIPOutputStream))
(defn gunzip
"Writes the contents of input to output, decompressed.
input: something which can be opened by io/input-stream.
#!/usr/bin/env sh
export projectname=blogs
git clone [email protected]:bbc/symfony-bootstrap.git $projectname && cd $_ && script/rename $projectname
@Qambar
Qambar / How to convert P12 to PEM file
Created December 10, 2015 13:09 — forked from jak/How to convert P12 to PEM file
How to convert P12 to PEM file
openssl pkcs12 -in myfile.p12 -out newfile.pem -nodes
@Qambar
Qambar / mapReduce.R
Created September 27, 2015 22:29 — forked from primaryobjects/mapReduce.R
Map Reduce example in R. Demonstrates applying a map and reduce function to an input array, resulting in a hash of key/value pairs. This example maps a method to find prime divisors of each input value and then reduces the result by summing the input value for each prime divisor. See demo at http://www.r-fiddle.org/#/fiddle?id=tyir23SG&version=1
is.prime <- function(num) {
if (num == 2) {
TRUE
} else if (any(num %% 2:(num-1) == 0)) {
FALSE
} else {
TRUE
}
}
@Qambar
Qambar / mmds-q2a.R
Created September 27, 2015 22:29 — forked from primaryobjects/mmds-q2a.R
Mining Massive Datasets Quiz 2a: LSH (Basic)
#
# Quiz 2a
#
#
# Q1
# The edit distance is the minimum number of character insertions and character deletions required to turn one string into another. Compute the edit distance between each pair of the strings he, she, his, and hers. Then, identify which of the following is a true statement about the number of pairs at a certain edit distance.
#
packages <- c('combinat', 'stringdist')