Skip to content

Instantly share code, notes, and snippets.

View ragmha's full-sized avatar

Räghib Hasan ragmha

View GitHub Profile
#import Flask class from flask module
from flask import Flask, render_template, redirect, \
url_for, request, session, flash
from functools import wraps
from flask.ext.sqlalchemy import SQLAlchemy
#creating the application object
app = Flask(__name__)
@ragmha
ragmha / T-11
Created September 2, 2014 14:55
C Prog T-11
#include<stdio.h>
#include <stdlib.h>
#define _CRT_SECURE_NO_WARNINGS
int main()
{
char firstName[20];
Viime viikolla
Viime viikolla Maanantai kävin syömässä lounas ravintolassa Helsingissä kello puoli 12 ystävällä. Iltapäivällä kävin harjoitella kuntosalilla. Yöllä minä kävin ystäviä kotiin syömään päivällinen kello 10 ja pelasin X-box yksi.
@ragmha
ragmha / Pointers7
Last active August 29, 2015 14:14
Pointers7
#include<stdio.h>
int main(){
int carSales[]={14,21,40,65,77};
int *ptr,i;
int n = sizeof(carSales)/sizeof(int);
ptr = carSales;
Scanner reader = new Scanner(System.in);
System.out.println("Top ten players based on goals");
NHLStatistics.sortByGoals();
NHLStatistics.top(10);
System.out.print("\n");
System.out.println("Top 25 players based on penalty amounts");
NHLStatistics.sortByPenalties();
import java.util.Scanner;
public class Password {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
String password = "carrot"; // Use carrot as password when running tests.
while(true){
// Write your code here
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package homework;
import java.util.Scanner;
/**
Hello all
For the first assignment please try to recreate the process we went through on the lecture (writing the transactions in the Journal -> Ledger -> Trial balance)
The transactions are as follows:
1. Bought furniture for cash. 400€
2. Bought used car for the company on credit. 20 000€
3. Bought goods (for resale) for cash. 500€
4. Sold goods for cash. 20 000€
#Exam
* SQL-Injection

' union select @@version,null,null#