Skip to content

Instantly share code, notes, and snippets.

View kunalvarma05's full-sized avatar
🎧
No.

Kunal Varma kunalvarma05

🎧
No.
View GitHub Profile
@kunalvarma05
kunalvarma05 / App.java
Created July 5, 2018 12:30
Functional List demo
package com.foo.bar;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
public class App
{
public static void main(String[] args)
{
@kunalvarma05
kunalvarma05 / function_invocation.js
Created April 5, 2017 16:45 — forked from myshov/function_invocation.js
11 Ways to Invoke a Function
console.log(1);
(_ => console.log(2))();
eval('console.log(3);');
console.log.call(null, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);
Function.prototype.apply.call(console.log, null, [9]);
Function.prototype.call.call(console.log, null, 10);
@kunalvarma05
kunalvarma05 / index.html
Created March 8, 2017 06:13
(GDG DAIICT) Getting started with Vue.js - created on 7th March, 2017 at DAIICT.
<!DOCTYPE HTML>
<html>
<head>
<title>Vue JS</title>
<script src="https://unpkg.com/vue@2.2.1"></script>
</head>
<body>
<div id="app">
@kunalvarma05
kunalvarma05 / DeCryptor.java
Created February 24, 2017 15:56 — forked from JosiasSena/DeCryptor.java
Encryptor and Decryptor for data encryption.decryption using the Android KeyStore.
/**
_____ _____ _
| __ \ / ____| | |
| | | | ___| | _ __ _ _ _ __ | |_ ___ _ __
| | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__|
| |__| | __/ |____| | | |_| | |_) | || (_) | |
|_____/ \___|\_____|_| \__, | .__/ \__\___/|_|
__/ | |
|___/|_|
*/
@kunalvarma05
kunalvarma05 / gulpfile.js
Created July 1, 2016 20:34 — forked from danharper/gulpfile.js
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@kunalvarma05
kunalvarma05 / after.sh
Created February 27, 2016 22:39 — forked from cluppi/after.sh
Turning SSL on for Homestead
#!/bin/sh
# Config for SSL.
echo "--- Making SSL Directory ---"
mkdir /etc/nginx/ssl
echo "--- Copying $i SSL crt and key ---"
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com"
echo "--- Turning SSL on in nginx.conf. ---"
{
"always_show_minimap_viewport": true,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
},
{
"characters": "/",
[
{
"keys": ["ctrl+shift+f"], "command": "reindent","args": {"single_line": false}
},
{
"keys": ["ctrl+shift+n"], "command": "advanced_new_file_new"
},
{
"keys": ["ctrl+shift+a"], "command": "toggle_side_bar"
},

Auto-Split Fields

A simple demonstration of form fields which split on change. The name field, on change, splits into two fields, first name and last name. The email field, splits into two fields, the email itself and the username. The password field splits into the password and a password confirmation field which needs to be filled by the user.

This concept could probably reduce the form filling time.

A Pen by Kunal Varma on CodePen.

License.

@kunalvarma05
kunalvarma05 / 0_reuse_code.js
Created June 5, 2014 21:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console