Skip to content

Instantly share code, notes, and snippets.

View dukenmarga's full-sized avatar

Duken Marga dukenmarga

View GitHub Profile
@dukenmarga
dukenmarga / char2int.c
Last active April 2, 2020 11:39 — forked from duken-blog/char2int.c
Convert Character to Integer (C Language)
#include <stdio.h>
int main(){
char c[5] = "23452";
char d[5] = "23452";
int result=0, factor=3;
int numeric;
// take and convert 1 character from an array
numeric = c[2] - '0'; // --> 4
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot
import numpy
from flask import Flask, send_file
from cStringIO import StringIO
app = Flask(__name__)