Skip to content

Instantly share code, notes, and snippets.

View sumanssaurabh's full-sized avatar
🏠
Working from home

Suman Saurabh sumanssaurabh

🏠
Working from home
View GitHub Profile
@zmts
zmts / imageSize.md
Created June 6, 2020 16:48
Get image width and height with JavaScript

Get image width and height with JavaScript

function imageSize (image) {
  return new Promise((resolve, reject) => {
    try {
      const fileReader = new FileReader()

      fileReader.onload = () => {
 const img = new Image()
/*******************
* intoTheWoods.js *
*******************
*
* Ah, you're out of the woods now. Or into the woods, as the
* case may be.
*
* So take a deep breath, relax, and remember what you're here
* for in the first place.
*
@sumanssaurabh
sumanssaurabh / 00 - Basic.md
Created March 31, 2019 22:46 — forked from amelieykw/00 - Basic.md
[Java Interview Preparation] #java #interview
  1. Java Identifiers
  2. Data types
  3. How to define our own data type in java(enum)
  4. Variables
  5. Scope of Variables
  6. Loops in Java(Practice)
  7. For-each loop in Java
  8. For Loop in Java | Important points
  9. Decision Making(if, if-else, switch, break, continue, jump)(Practice)
  10. Switch Statement in Java(Practice)
@ionurboz
ionurboz / readme.md
Created March 31, 2019 22:31
Vanilla JS equivalents of jQuery methods

jQuery vs. JavaScript

Events

// jQuery
$(document).ready(function() {
  // code
})
@Adria87
Adria87 / Java conventions.md
Created December 17, 2018 14:49
[Java conventions] #java

Coding Conventions

This file will cover important coding practices that are important to stress when coding this program. Listed below are some of the more important details that should be stressed. Each programmer has his/her own way to deliver code. The importance of having similar coding conventions throughout this program are listed below.

  • 80% of the time spent on a piece of software goes to maintenance.
  • Hardly any software is maintained for its whole life by the original author.
  • Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly.
  • If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.
@augbog
augbog / Free O'Reilly Books.md
Last active February 26, 2025 12:50
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@culots
culots / gpt_parser.py
Created September 2, 2016 07:19
Feed this your GPT.bin, and out it shoots a partition.xml
#!/usr/bin/python
# Author : n0fate
# E-Mail [email protected], [email protected]
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
@leonardofed
leonardofed / README.md
Last active March 14, 2025 18:19
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@WebRTCGame
WebRTCGame / JavascriptBooks.md
Last active March 2, 2025 07:54
Free Javascript Books

Useful Links

23 Free JavaScript Books

A curated collection of awesome & free JavaScript books to help you learn the JavaScript programming language.

If you know of any other free JavaScript books that you think should be on this list, please let me know in the comments section and I will get them added.