Skip to content

Instantly share code, notes, and snippets.

View jaydeepkarena's full-sized avatar
🚀
Fullstack Developer

Jaydeep Karena jaydeepkarena

🚀
Fullstack Developer
  • Navsari, Gujarat (India)
  • 01:48 (UTC +05:30)
  • X @JKarena7
View GitHub Profile
@joyrexus
joyrexus / jq_vs_js.md
Last active January 22, 2024 21:15
Comparison of jQuery and vanilla JS for basic DOM manipulation.

jQuery vs native JS

Selecting Elements

var divs = $("div");

var divs = document.querySelectorAll("div");
@willurd
willurd / web-servers.md
Last active July 25, 2024 14:04
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@staltz
staltz / introrx.md
Last active July 25, 2024 16:52
The introduction to Reactive Programming you've been missing

Git Cheat Sheet

Commands

Getting Started

git init

or

@MattBroyles
MattBroyles / VS-SaveOnEnter.ahk
Last active September 6, 2018 10:57
This is a simple AutoHotKey script that will auto-save Visual Studio on every press of the enter key.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force
; Target only Visual Studio
SetTitleMatchMode, 2
#IfWinActive Microsoft Visual Studio
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active July 16, 2024 15:33
Vanilla JavaScript Quick Reference / Cheatsheet
@davebrny
davebrny / text wrap.ahk
Last active March 3, 2024 11:50
📇 (autohotkey) - wrap selected text in *symbols*
/*
[script info]
version = 2.5
description = wrap selected text in %symbols%
author = davebrny
source = https://gist.github.com/davebrny/088c48d6678617876b34f53571e92ee6
*/
sendMode input
return ; end of auto-execute
@ohansemmanuel
ohansemmanuel / static-data.js
Created May 18, 2018 14:00
Static data generation for Skypey.
const shortid = require("shortid"); // shortid.generate() returns a unique "short" id
const txtgen = require("txtgen"); // txtgen.sentence() returns random "readable" sentences
const faker = require("faker"); // faker is used for generating random fake data.
const _ = require("lodash"); // lodash is a utility lib for Javascript
const users = generateUsers(10);
export const contacts = _.mapKeys(users, "user_id");
export const getMessages = messagesPerUser => {
let messages = {};
_.forEach(users, user => {