Skip to content

Instantly share code, notes, and snippets.

View wizlee's full-sized avatar
🚀
Exploring Web Development 🕊

Wiz Lee wizlee

🚀
Exploring Web Development 🕊
View GitHub Profile
@ejmejm
ejmejm / pytorch_tips_yt_follow.ipynb
Created May 9, 2021 09:14
pytorch_tips_yt_follow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkrems
jkrems / index.md
Last active November 3, 2023 14:34
JavaScript: Classic Scripts vs. Modules vs. CommonJS

JavaScript File Format Differences

There's the pervarsive notion that all JS is created equal and that there's only minor and easily detectable differences between the various file formats used to author JavaScript. This is correct, from a certain point of view.

A certain point of view?

For many people writing JavaScript that gets passed into build tools,

@agaricusb
agaricusb / gist:4575843
Created January 19, 2013 23:42
fernflower 0.8.6 cA NPE patch (fix for missing classes)
--- a/cA.java
+++ b/cA.java
@@ -234,7 +234,7 @@ public final class cA {
private aJ a(aK var1, cX var2, aG var3) {
aK var5 = (aK)aD.f().a().get(var3.g());
String var4 = cP.a(var3.k(), var3.h());
- if(var5.h.containsKey(var4) && (var4 = (String)var5.i.get(var4)) != null && var4.length() > 0) {
+ if(var5 != null && var5.h != null && var5.h.containsKey(var4) && (var4 = (String)var5.i.get(var4)) != null && var4.length() > 0) {
if(!a(var1, var5)) {
return null;