Skip to content

Instantly share code, notes, and snippets.

View vikasavnish's full-sized avatar

Vikas Avnish vikasavnish

  • wizikey
  • Gurgaon
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>superdict</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
class Map(dict):
def __init__(self, *args, **kwargs):
super(Map, self).__init__(*args, **kwargs)
for arg in args:
if isinstance(arg, dict):
for k, v in arg.items():
if isinstance(v, dict):
v = Map(v)
if isinstance(v, list):
self.__convert(v)
package main
import (
"encoding/json"
"fmt"
)
func main() {
//Simple Employee JSON object which we will parse
empJson := `{
package main
import (
"encoding/json"
"fmt"
)
func main() {
//Simple Employee JSON which we will parse
empArray := `[
package main
import (
"encoding/json"
"fmt"
)
func main() {
//Simple Employee JSON object which we will parse
empJson := `{
package main
import (
"encoding/json"
"fmt"
)
func main() {
//Simple Employee JSON object which we will parse
empArray := `[
#chrome --headless --disable-gpu --dump-dom https://www.chromestatus.com/
from selenium import webdriver
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
path_to_chromedriver = '/usr/bin/chromedriver'
options = Options()
options.add_argument("start-maximized")
options.add_argument("--headless")
options.add_argument("--disable-gpu")
function myFunction() {
message = GmailApp.getSpamUnreadCount()
while (message > 1 ) {
message = GmailApp.getSpamThreads(0,99)
GmailApp.moveThreadsToTrash(message)
message = GmailApp.getSpamUnreadCount()
}
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);
return v.toString(16);
});
}
uuid_track=0
if (document.cookie.indexOf("uuid_set=")==-1){
uuid_track = uuidv4()
document.cookie = "uuid_set="+ uuid_track