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
def formula(s, t): | |
return s * t | |
def main(): | |
speed = raw_input("Enter Speed Traveled At: ") | |
time = raw_input("Enter Time Traveled for: ") | |
output = formula(int(speed), int(time)) | |
print "Distance: " + str(output) |
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.IO; | |
using System.Linq; | |
using System.Reflection; | |
using BDScript.Overrides; | |
using IronPython.Hosting; | |
namespace BDScript | |
{ |
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
from BDCore import * | |
from Newtonsoft.Json import * | |
import clr | |
clr.AddReference("System.Drawing") | |
clr.AddReference("System.Windows.Forms") | |
from System.Drawing import Point, Color | |
from System.Windows.Forms import * | |
class HelloWorldForm(Form): |
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.Security.Cryptography; | |
///<summary> | |
/// Represents a pseudo-random number generator, a device that produces random data. | |
///</summary> | |
classCryptoRandom : RandomNumberGenerator | |
{ | |
privatestaticRandomNumberGenerator r; | |
///<summary> | |
/// Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data. |
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.Management; | |
using System.Windows.Forms; | |
namespace WMISample | |
{ | |
public class CallWMIMethod | |
{ | |
public static void Main() | |
{ |
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 HelperLibrary; | |
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using W10_Logon_BG_Changer___Command_Line.Tools; | |
using Color = System.Drawing.Color; | |
using Path = System.IO.Path; | |
using Rectangle = System.Drawing.Rectangle; |
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
// list::sort | |
#include <iostream> | |
#include <list> | |
#include <string> | |
#include <cctype> | |
// comparison, not case sensitive. | |
bool compare_nocase (const std::string& first, const std::string& second) | |
{ | |
unsigned int i=0; |
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 | |
namespace Controllers; | |
class StaticFileHandler { | |
private $basePath; | |
private $loadedFiles; | |
function __construct($basePath) |
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 | |
namespace Controllers\EventEngine; | |
class EventHandler | |
{ | |
private static $EventPool = []; | |
public static function CreatePool($poolName){ | |
if(array_key_exists($poolName, self::$EventPool)) |
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 | |
class YoutubeEmbed extends JBBCode\CodeDefinition { | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->setTagName("youtubeEmbed"); | |
} | |
OlderNewer