Skip to content

Instantly share code, notes, and snippets.

Working from home

piyush nautical

Working from home
Block or report user

Report or block nautical

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View Sample.js
const headers = {
headers: {
"content-type": "application/json"
const accel = {
createWallet: async (endPoint, auth) => {
try {
const makeCreateWalletRequest = await
View My Hammerspoon config.lua
caffeine =
function setCaffeineDisplay(state)
if state then
function showNotification()
View styles.diff
--- app_extract/styles/main.css 2018-09-13 06:25:53.000000000 +0530
+++ app_extract.backup/styles/main.css 2018-09-13 05:50:13.000000000 +0530
@@ -5838,21 +5838,21 @@
color: rgba(255, 255, 255, 0.3); }
.mdi-rotate-45 {
- /*
- // Not included in production
- &.mdi-flip-h:before {
- -webkit-transform: scaleX(-1) rotate(45deg);
View AES.html
<!DOCTYPE html>
<div id="enctest"></div>
<script type="text/javascript" src="//"></script>
<script type="text/javascript">
View Hideit.html
<!DOCTYPE html>
<title>Hiding Text</title>
<input type="text" placeholder="Normal Text" id="textval">
<input type="text" placeholder="Key" id="key">
<button id="convert" onclick="convert();">Convert</button>
View Convertor.html
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
function convertor() {
var hindi = new Array(
"ñ", "Q+Z", "sas", "aa", ")Z", "ZZ", "‘", "’", "“", "”",
nautical / gist:9859452
Created Mar 29, 2014
View gist:9859452
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocument;
import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.params.ModifiableSolrParams;
import org.apache.solr.core.CoreContainer;
import org.apache.solr.common.SolrInputDocument;
public class EmbeddedSolrExample{
View gist:9859418
#include <jni.h>
#include <stdio.h>
#include <stdlib.h>
#define ln printf("%d \n",__LINE__);fflush(stdout);
JNIEnv* create_vm(JavaVM **jvm)
JNIEnv* env;
JavaVMInitArgs args;
View gist:9841669
* File: pie.h
* Author: yip
* Created on 17 July, 2013, 4:53 PM
#ifndef PIE_H
#define PIE_H
You can’t perform that action at this time.