Skip to content

Instantly share code, notes, and snippets.

View 4M01's full-sized avatar
🏠
Working from home

Amol Chavan 4M01

🏠
Working from home
View GitHub Profile
@sindresorhus
sindresorhus / esm-package.md
Last active June 1, 2024 19:35
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@michaelkeevildown
michaelkeevildown / fitz.md
Created January 4, 2019 20:34
Robin Hobb Fitz Books in Order

The Farseer Trilogy:

  1. Assassin's Apprentice
  2. Royal Assassin
  3. Assassin's Quest

Followed by the Liveship Traders Trilogy

  1. Ship of Magic
  2. Mad Ship
  3. Ship of Destiny
@steshaw
steshaw / robin-hobb-reading-order.md
Last active November 12, 2019 14:24
Robin Hobb "Realms of the Elderlings Series" reading order
@sahajamit
sahajamit / testngListOfMaps_DataProvider.java
Created August 8, 2017 05:57
TestNG dataprovider example to pass List of maps as a provider
package testng;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.util.*;
public class testngListOfMaps_DataProvider {
@DataProvider(name = "Passing List Of Maps")
public Iterator<Object[]> createDataforTest3() {

Machine Learning Week 1 Quiz 2 (Linear Regression with One Variable) Stanford Coursera

Github repo for the Course: Stanford Machine Learning (Coursera)

Question 1

Consider the problem of predicting how well a student does in her second year of college/university, given how well she did in her first year.

Specifically, let x be equal to the number of "A" grades (including A-. A and A+ grades) that a student receives in their first year of college (freshmen year). We would like to predict the value of y, which we define as the number of "A" grades they get in their second year (sophomore year).

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="/testResults">
<testsuites>
<testsuite>
<xsl:for-each select="*">
<testcase>
<xsl:attribute name="classname"><xsl:value-of select="name()"/></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="@lb"/></xsl:attribute>
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 30, 2024 08:12
A badass list of frontend development resources I collected over time.