Skip to content

Instantly share code, notes, and snippets.

View rakhi2104's full-sized avatar
👨‍💻
I may be slow to respond.

Rakesh Peela rakhi2104

👨‍💻
I may be slow to respond.
View GitHub Profile
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@zenorocha
zenorocha / basic.md
Last active March 26, 2023 09:00
New Firebase Auth vs Old Firebase Auth
@adamreisnz
adamreisnz / package.json
Last active January 19, 2024 13:01
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",
@shagunsodhani
shagunsodhani / DCGAN.md
Created November 22, 2016 17:07
Notes for DCGAN paper

Deep Convolutional Generative Adversarial Nets

Introduction

  • The paper presents Deep Convolutional Generative Adversarial Nets (DCGAN) - a topologically constrained variant of conditional GAN.
  • Link to the paper

Benefits

  • Stable to train
@codediodeio
codediodeio / database.rules.json
Last active July 29, 2024 09:39
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@CodingDoug
CodingDoug / README.md
Last active December 17, 2022 10:23
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active July 24, 2024 20:54
Online Resources For Web Developers (No Downloading)
@bradtraversy
bradtraversy / docker-help.md
Last active July 9, 2024 10:18
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@steven-tey
steven-tey / title-from-url.ts
Last active July 29, 2024 20:57
Get Title from URL
// Note: this gist is a part of this OSS project that I'm currently working on: https://github.com/steven-tey/dub
export default async function getTitleFromUrl (url: string) {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 2000); // timeout if it takes longer than 2 seconds
const title = await fetch(url, { signal: controller.signal })
.then((res) => {
clearTimeout(timeoutId);
return res.text();
})