Skip to content

Instantly share code, notes, and snippets.

View ShawonAshraf's full-sized avatar
🐈
I may be slow to respond.

Shawon Ashraf ShawonAshraf

🐈
I may be slow to respond.
View GitHub Profile
@ShawonAshraf
ShawonAshraf / django-launch.json
Created November 22, 2016 18:44 — forked from slaveofcode/django-launch.json
Sample Django Configuration launch.json VSCode (Visual Studio Code)
{
"version": "0.2.0",
"configurations": [
{
"name": "Django",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"pythonPath": "${workspaceRoot}/venv/bin/python3.4",
"program": "${workspaceRoot}/manage.py",
@ShawonAshraf
ShawonAshraf / install_packages.sh
Created March 9, 2017 17:59 — forked from luiscape/install_packages.sh
Install Python dependency packages from requirements.txt using conda.
#
# Original solution via StackOverflow:
# http://stackoverflow.com/questions/35802939/install-only-available-packages-using-conda-install-yes-file-requirements-t
#
#
# Install via `conda` directly.
# This will fail to install all
# dependencies. If one fails,
# all dependencies will fail to install.
@ShawonAshraf
ShawonAshraf / JSPForm.jsp
Created March 28, 2017 10:16 — forked from abirAbuAsim/JSPForm.jsp
A simple JSP form to insert form data into mySQL database
<!DOCTYPE HTML>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<HTML>
<head>
<title>This is a jsp page</title>
</head>
<body>
@ShawonAshraf
ShawonAshraf / tex.sh
Created June 19, 2017 16:16
Latex basic package installer for macOS
sudo tlmgr install titlesec
sudo tlmgr install framed
sudo tlmgr install threeparttable
sudo tlmgr install wrapfig
sudo tlmgr install multirow
sudo tlmgr install enumitem
sudo tlmgr install bbding
sudo tlmgr install titling
sudo tlmgr install tabu
sudo tlmgr install mdframed
@ShawonAshraf
ShawonAshraf / ideas.md
Created August 3, 2017 16:32 — forked from tsaqib/ideas.md
Ideas that you can use for hackathons, competitions and research.

Ideas

I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.

Categories:
  • Eradicate Extreme Poverty and Hunger
  • Education
  • Healthcare
  • Governance
@ShawonAshraf
ShawonAshraf / guicode.swift
Last active November 30, 2017 21:15
ClassifierGUISwift.md
//
// ViewController.swift
// macOS_GUI
//
// Created by Shawon Ashraf on 7/8/17.
// Copyright © 2017 Shawon Ashraf. All rights reserved.
//
import Cocoa
public class HelloJava {
public static void main(String[] args) {
System.out.println("Hello Java");
}
}
@ShawonAshraf
ShawonAshraf / VariableSize2DArray.java
Created October 6, 2017 19:20
2D variable dim array java
import java.util.Scanner;
public class VariableSize2DArray {
public static void main(String[] args) {
int row, col;
Scanner in = new Scanner(System.in);
@ShawonAshraf
ShawonAshraf / down_image.js
Created October 13, 2017 08:50
Download images from Google image search
// taken from
// https://32hertz.blogspot.com/2015/03/download-all-images-from-google-search.html
var cont=document.getElementsByTagName("body")[0];
var imgs=document.getElementsByTagName("a");
var i=0;var divv= document.createElement("div");
var aray=new Array();var j=-1;
while(++i<imgs.length){
if(imgs[i].href.indexOf("/imgres?imgurl=http")>0){
divv.appendChild(document.createElement("br"));
@ShawonAshraf
ShawonAshraf / rem_java.sh
Last active October 30, 2018 08:28
Completely removing Oracle JDK, JRE from macOS
sudo rm -rf /Library/Java/JavaVirtualMachines/*.jdk
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -rf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
sudo rm -rf /Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper
sudo rm -rf /Library/LaunchDaemons/com.oracle.java.Helper-Tool.plist
sudo rm -rf /Library/Preferences/com.oracle.java.Helper-Tool.plist