Skip to content

Instantly share code, notes, and snippets.

View abhisheksliam's full-sized avatar

Abhishek Kumar abhisheksliam

View GitHub Profile
{
entId: '34523645646',
createdBy: 'dfgfds',
updatedBy: 'gdfdfgfd',
dashboardName: 'Dashboard for flow creation 04',
dashboardType: 'canned',
dashboardDescription: 'Basic dashboard',
dashboardLevelFilters: [
{
key: {
@abhisheksliam
abhisheksliam / url-ip-regex
Created March 8, 2022 09:51
url-ip-regex
^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?|^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(:[0-9]{1,5})?(\/.*)?$
<!DOCTYPE html>
<html>
<head>
<script>
function uuidv4() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
@abhisheksliam
abhisheksliam / install.md
Created October 1, 2020 17:30 — forked from Micka33/install.md
cassandra on mac OSX

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@abhisheksliam
abhisheksliam / installing_cassandra.md
Created October 1, 2020 17:12 — forked from hkhamm/installing_cassandra.md
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
<div class="include-html">
<div class="app-container" style="display:none;">
<div class="branding">
<a href="https://help.colombiaonline.com/" target="_blank">
<img src="help-center-white.png" alt="">
</a>
</div>
<div class="app-content">
<div class="search-frame">
<div id="screen1">
@abhisheksliam
abhisheksliam / hc-widget-data.json
Last active May 26, 2018 04:58
hc widget data
{
"meta": {
"default_frame": "https://www.wikipedia.org"
},
"list": [
{
"trigger": "/C:/Users/Abhishek.Kumar15/Desktop/help/hc-widget.html?1",
"default_frame": "",
"ul": [
{
@abhisheksliam
abhisheksliam / add.js
Created June 16, 2017 15:16 — forked from getify/add.js
an `add(..)` function that keeps going forever :)
function add() {
var sum = 0;
function add() {
for (var i=0; i<arguments.length; i++) {
sum += Number(arguments[i]);
}
return add;
}
add.valueOf = function valueOf(){
@abhisheksliam
abhisheksliam / promises.md
Created May 29, 2017 09:46 — forked from domenic/promises.md
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.