Skip to content

Instantly share code, notes, and snippets.

View wohhie's full-sized avatar
👨‍💻
Focusing

Jewel Shamim wohhie

👨‍💻
Focusing
View GitHub Profile
@wohhie
wohhie / fibboniaci_series.c
Created July 21, 2016 05:57
Fibbonacci Series
#include <stdio.h>
int main() {
int fib1 = 0,
fib2 = 1,
count = 2,
limit,
fib3;
printf("Fibboniaci Series:\n");
@wohhie
wohhie / Linked_list.c
Created July 23, 2016 13:08
//LinkedList Insert & display
//LinkedList code
//insert and display list
#include <stdio.h>
#include <cstdlib>
struct Node {
int val;
@wohhie
wohhie / calculator.py
Last active April 9, 2018 07:27
##Python Calculator
# 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.
while True:
print("Enter '1' to add numbers")
print("Enter '2' to subtract numbers")
print("Enter '3' to divide numbers")
print("Enter '4' to multiply numbers")
print("Enter '5' to quit numbers")
@wohhie
wohhie / Count_char_in_file.py
Created July 25, 2016 17:34
❋ File Open ❋ Read the file ❋ Count Number of char with user choice -------EXAMPLE------
#count_char method.
#which count the total value
def count_char(text, char):
count = 0
for c in text:
if( c == char):
count += 1
return count;
#count_char method.
#which count the total value
def count_char(text, char):
count = 0
for c in text:
if( c == char):
count += 1
return count;
@wohhie
wohhie / find_array_size.cpp
Created August 3, 2016 22:26
Find Array Size & Size of the int value.
//find array size
#include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;
//processoing...
void search() {
@wohhie
wohhie / write_file.cpp
Created September 6, 2016 06:15
Create File & Read File
#include <iostream>
#include <fstream>
using namespace std;
int main() {
ofstream myfile("wohhie.txt");
if (myfile.is_open()) {
myfile << "This is Line 1\n";
myfile << "This is line 2\n";
@wohhie
wohhie / read_line.cpp
Created September 6, 2016 06:17
Read From File
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
string line;
ifstream myfile("wohhie.txt");
if (myfile.is_open()) {
@wohhie
wohhie / print_0to10.cpp
Created September 6, 2016 07:17
Print 0 to 10 and then print 10 to 0
package javatest;
/**
*
* @author tousifosman
*/
public class JavaTest {
/**
* @param args the command line arguments
@wohhie
wohhie / .htaccess
Created September 17, 2016 21:50
1and1 solution for htaccess file.
<IfModule mod_rewrite.c>
RewriteBase /
Options -MultiViews
RewriteEngine On
#1and1 to enable PHP 5.4
AddHandler x-mapp-php6 .php