Skip to content

Instantly share code, notes, and snippets.

View dhananjay431's full-sized avatar
🎯
Focusing

dbel431 dhananjay431

🎯
Focusing
View GitHub Profile
@dhananjay431
dhananjay431 / tree_js.html
Last active December 18, 2021 10:03
tree_js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="./src/lodash.js"></script>
<script>
@dhananjay431
dhananjay431 / xlsx_column_names.js
Last active November 2, 2021 05:28
xlsxColumn
function getColsName(num) {
var str = [];
for (var i = 0; i < parseInt(num / 26) + 1; i++) {
for (var j = 0; j < 26; j++) {
var zz = (i > 0 ? String.fromCharCode(65 + i - 1) : "") + String.fromCharCode(65 + j)
str.push(zz);
}
}
return str;
@dhananjay431
dhananjay431 / snippets.js
Last active October 31, 2021 14:01
snippets
{
"Observable": {
"prefix": "$ob",
"body": [
"const observable = new Observable(subscriber => {",
" subscriber.next(1);",
" subscriber.next(2);",
" subscriber.next(3);",
" setTimeout(() => {",
" subscriber.next(4);",
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
<body>
<div>
<label>Name:</label>
<input type="text" ng-model="yourName" placeholder="Enter a name here">
<hr>