Skip to content

Instantly share code, notes, and snippets.

View charudatta10's full-sized avatar
🏠
Working from home

charudatta charudatta10

🏠
Working from home
View GitHub Profile
@charudatta10
charudatta10 / genetic.py
Last active September 9, 2017 15:38 — forked from bellbind/genetic.py
"""Genetic Algorithmn Implementation
see:
http://www.obitko.com/tutorials/genetic-algorithms/ga-basic-description.php
"""
import random
class GeneticAlgorithm(object):
def __init__(self, genetics):
self.genetics = genetics
pass
@charudatta10
charudatta10 / snake.html
Created July 13, 2018 04:08 — forked from straker/README.md
Basic Snake HTML Game
<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
html, body {
height: 100%;
margin: 0;
}
@charudatta10
charudatta10 / pan i2i
Created August 5, 2018 14:11
DLHacks/pix2pix_PAN
https://github.com/DLHacks/pix2pix_PAN
@charudatta10
charudatta10 / Blockchain.jl
Created December 4, 2018 09:14 — forked from TestSubjector/Blockchain.jl
A very basic implementation of a blockchain in Julia.
using SHA
"""
An individual block structure
"""
struct Block
index::Int
timestamp::DateTime
data::String
previous_hash::String
import numpy as np
from sklearn.datasets import make_moons
from sklearn.cross_validation import train_test_split
n_feature = 2
n_class = 2
def make_network(n_hidden=100):
@charudatta10
charudatta10 / FPGA_2_LCD.v
Created April 15, 2019 07:32 — forked from jjcarrier/FPGA_2_LCD.v
A simple character LCD controller core written in Verilog
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: Carrier Frequency, Inc.
// Engineer: Jon Carrier
//
// Create Date: 21:33:11 06/17/2011
// Design Name:
// Module Name: FPGA_2_LCD
// Project Name:
// Target Devices:
@charudatta10
charudatta10 / progress.py
Created May 1, 2019 05:07 — forked from vladignatyev/progress.py
Python command line progress bar in less than 10 lines of code.
# The MIT License (MIT)
# Copyright (c) 2016 Vladimir Ignatev
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software
# is furnished to do so, subject to the following conditions:
#
@charudatta10
charudatta10 / tsp.py
Created May 8, 2019 10:04 — forked from turbofart/tsp.py
Applying a genetic algorithm to the travelling salesman problem
#!/usr/bin/env python
"""
This Python code is based on Java code by Lee Jacobson found in an article
entitled "Applying a genetic algorithm to the travelling salesman problem"
that can be found at: http://goo.gl/cJEY1
"""
import math
import random
@charudatta10
charudatta10 / _webserver.md
Created May 15, 2019 06:57 — forked from jgravois/_webserver.md
a simple guide for getting a local web server set up

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@charudatta10
charudatta10 / gunicorn_lighttpd.conf
Created May 12, 2021 21:02 — forked from meskarune/gunicorn_lighttpd.conf
gunicorn lighttpd conf file
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_extforward",
"mod_rewrite",
#"mod_fastcgi",
"mod_proxy",
"mod_redirect" )