Skip to content

Instantly share code, notes, and snippets.

View ShawonAshraf's full-sized avatar

Shawon Ashraf ShawonAshraf

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 / 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
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"));
import tensorflow as tf
x = tf.Variable(3, name="x")
y = tf.Variable(4, name="y")
f = x + y + 2
with tf.Session() as sess:
x.initializer.run()
y.initializer.run()
@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
var movieRatings = [
"The girl next door": 8, "মাটির ময়না": 10, "খোঁজ The Search": 10, "Star Wars: A new hope": 10,
"The Godfather": 10, "Grave of the fireflies": 10
]
let dk = movieRatings.keys
for k in dk {
print(k)
}
var 😎 = "Imma gonna write all in 😈 emojis"
print(😎)
print("\(😎) has \(😎.characters.count) characters in it")