Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Working from home

piyush nautical

👨‍💻
Working from home
  • Helium
  • Mumbai
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
View keybase.md

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 axios.post(
View My Hammerspoon config.lua
caffeine = hs.menubar.new()
function setCaffeineDisplay(state)
if state then
caffeine:setTitle("AWAKE")
else
caffeine:setTitle("SLEEPY")
end
end
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>
<html>
<head>
<title></title>
</head>
<body>
<div id="enctest"></div>
</body>
<script type="text/javascript" src="//cdn.rawgit.com/ricmoo/aes-js/e27b99df/index.js"></script>
<script type="text/javascript">
View Hideit.html
<!DOCTYPE html>
<html>
<head>
<title>Hiding Text</title>
</head>
<body>
<input type="text" placeholder="Normal Text" id="textval">
<input type="text" placeholder="Key" id="key">
<button id="convert" onclick="convert();">Convert</button>
<br>
View Convertor.html
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Conversion</title>
<script type="text/javascript">
function convertor() {
var hindi = new Array(
"ñ", "Q+Z", "sas", "aa", ")Z", "ZZ", "", "", "", "",
@nautical
nautical / gist:9859452
Created Mar 29, 2014
EmbeddedSolrExample.java
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.