This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class PositiveOddNegativeEven{ | |
public static void Main(){ | |
for(int i=0; i<20; i++){ | |
if(i%2==0){ | |
Console.WriteLine(i); | |
}else{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach(DataGridViewRow Row in datagridShoppingCart.Rows){ | |
string itemName =(string)(Row.Cells["Item Name"].Value); | |
textBox1.Text = itemName; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class PlayerController : MonoBehaviour { | |
public float Speed; | |
private Rigidbody rb; | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
OlderNewer