Skip to content

Instantly share code, notes, and snippets.

View asif31iqbal's full-sized avatar
🙂

Asif Iqbal asif31iqbal

🙂
View GitHub Profile
@asif31iqbal
asif31iqbal / limitConcurrentGoroutines.go
Created March 1, 2021 16:08 — forked from AntoineAugusti/limitConcurrentGoroutines.go
Limit the maximum number of goroutines running at the same time
package main
import (
"flag"
"fmt"
"time"
)
// Fake a long and difficult work.
func DoWork() {
@asif31iqbal
asif31iqbal / pytorch_mnist.py
Created October 3, 2018 18:53 — forked from xmfbit/pytorch_mnist.py
an example of pytorch on mnist dataset
import os
import torch
import torch.nn as nn
from torch.autograd import Variable
import torchvision.datasets as dset
import torchvision.transforms as transforms
import torch.nn.functional as F
import torch.optim as optim
## load mnist dataset
use_cuda = torch.cuda.is_available()
@asif31iqbal
asif31iqbal / QueryTest.java
Created June 10, 2016 21:57 — forked from mocobeta/QueryTest.java
Lucene 4.1 querying sample
import static org.junit.Assert.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
@asif31iqbal
asif31iqbal / gist:d920a83e067a50ce2f0715aec37673c4
Created June 8, 2016 15:52 — forked from edwardw/gist:1518116
Install and start storm nimbus and supervisor

First, install storm dependencies. How do I compile jzmq for ZeroMQ on OSX? helps.

$ brew install zeromq
$ git clone https://github.com/nathanmarz/jzmq.git
$ cd jzmq
$ sudo vim /usr/share/aclocal/dirlist (sudo cat > /usr/share/aclocal/dirlist permission denied?)
/usr/local/share/aclocal
/usr/local/Cellar/pkg-config/0.25/share/aclocal/
$ export JAVA_HOME=/Library/Java/Home