Skip to content

Instantly share code, notes, and snippets.

View kapilgarg1996's full-sized avatar

kapil garg kapilgarg1996

View GitHub Profile
@jonnyreeves
jonnyreeves / index.html
Created April 23, 2012 21:38
JavaScript Class Structure using requireJS. The following code shows you how to create a Class definition in one JavaScript file and then import it for use in another; coming from an ActionScript 3 background this (and some of JavaScript specific traits)
<!DOCTYPE html>
<html>
<head>
<script data-main="usage" src="http://requirejs.org/docs/release/1.0.8/comments/require.js"></script>
</head>
<body>
<p>Check your JavaScript console for output!</p>
</body>
</head>
@asaskevich
asaskevich / MainSandBox.java
Created July 26, 2014 10:07
Java Reflection - Remove "private final" modifiers and set/get value to field
package sandbox;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
public class MainSandBox {
public static void main(String[] args) throws Exception {
Example ex = new Example();
// Change private modifier to public
Field f = ex.getClass().getDeclaredField("id");
@AkashMartin1
AkashMartin1 / gist:034878956fde42191dbf
Last active March 3, 2021 15:35
Wifi stops working after some time on ubuntu 14.10 and ubuntu 14.04 (RTL8723BE PCIe Wireless Network Adapter)
problem fixed with this solution.
git clone https://github.com/rtlwifi-linux/rtlwifi_new.git
cd rtlwifi_new
make
sudo make install
@josephhardinee
josephhardinee / spotifyprogrammingplaylists.md
Created March 20, 2019 14:00
Spotify Programming Playlists
  1. Piano Covers of Pop Songs: https://open.spotify.com/user/henryecker/playlist/4SBOdi7IMfCrYKZqCqtuXA?si=FL1axIJTTTqYWXYqS6QICw

  2. Extreme focus coding music: Primarily EDM with little to no vocals https://open.spotify.com/user/nebosite/playlist/0hy2h4wf2A3JWvMzK48REE?si=KlMRgPm8QfiC6N9Z-A6jAQ

  3. High Energy programming mix: Most songs have vocals but good for brainstorming portions. https://open.spotify.com/user/jhardinee/playlist/022CloUnijfD00ziUEXJ66?si=WCKBLFEbQmmym-0DNgFLRA

  4. Dubstep study: Dubstep with no vocals