Skip to content

Instantly share code, notes, and snippets.

View hygull's full-sized avatar
😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.

Rishikesh Agrawani hygull

😃
Enjoying work at AIPALETTE & in home. Programming is there as my best friend.
View GitHub Profile
@hygull
hygull / Finally-final-day-came.md
Created January 1, 2019 04:32
Poem for new year 2019 🆕, ⛲, 😄😃😁

HAPPY NEW YEAR

===================================

Finally, final day came

===================================

  • Bugs: bad habits/things
@hygull
hygull / object-type-check-split-map-number.md
Last active December 30, 2018 06:59
Object, type, check, split, map, number
> Object.prototype.toString.call(a)
'[object Array]'
>
> Object.prototype.toString.call(a).slice(8, -1)
'Array'
>
> Object.prototype.toString.call(a).slice(8, -1);
'Array'
>
@hygull
hygull / nw-resize-window.js
Created December 20, 2018 10:47
NW.js - Resizing window while starting the app
// Entry point of the application
// https://github.com/nwjs/nw.js/issues/6308
nw.Window.open('./src/views/index.html', {
position: 'center',
width: 1000,
height: 600,
frame: true
}, function(win) {
// log the width / height = 1366 / 768
if(typeof win !== 'undefined'){
@hygull
hygull / nw-resize-window.js
Created December 20, 2018 10:47
NW.js - Resizing window while starting the app
// Entry point of the application
// https://github.com/nwjs/nw.js/issues/6308
nw.Window.open('./src/views/index.html', {
position: 'center',
width: 1000,
height: 600,
frame: true
}, function(win) {
// log the width / height = 1366 / 768
if(typeof win !== 'undefined'){
@hygull
hygull / dict-add-messages-to-list.md
Last active December 16, 2018 06:06
Dictionary - add relevant messages to list
import json

messages = {}

words = [
    {
        "message": "I am ok",
 "channel": "Rita"
@hygull
hygull / in_one_line.md
Last active December 16, 2018 04:59
stackoverflow, getting file contents either in a line / as a list of words
@hygull
hygull / Windows 10.md
Created December 12, 2018 06:47
Windows 10

Advanced system settings

  • control sysdm.cpl
@hygull
hygull / ul_li_menu_submenu_bootstrap.html
Created November 25, 2018 07:45
Menu, Sub menu, JavaScript, Bootstrap3
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
@hygull
hygull / Menu-submenu.js
Last active November 25, 2018 07:43
Menu, submenu, code generation, JavaScript, for...of, for...in
/*
{
"Created on": "25 Nov 2018, Sun",
"Coded by": "Rishikesh Agrawani",
"Aim": "Simple dynamic code generation for menu/submenus using JavaScript"
}
*/
let data = {
"d": [
@hygull
hygull / Pandas-merge.md
Last active November 22, 2018 05:01
Pandas, stackoverflow, df.merge(), df.index.name