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
pragma solidity ^0.4.17; | |
contract Auction { | |
// Data | |
//Structure to hold details of the item | |
struct Item { | |
uint itemId; // id of the item | |
uint[] itemTokens; //tokens bid in favor of the item | |
} |
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
pragma solidity ^0.4.17; | |
contract Auction { | |
// Data | |
//Structure to hold details of the item | |
struct Item { | |
uint itemId; // id of the item | |
uint[] itemTokens; //tokens bid in favor of the item | |
} |
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
import json | |
import csv | |
# Read JSON File | |
with open('users.json') as json_file: | |
data = json.load(json_file) | |
user_data = data['users'] | |
# Prepare CSV file |
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
<!DOCTYPE HTML> | |
<HTML> | |
<HEAD> | |
<TITLE>PSR Geo Location Test</TITLE> | |
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" | |
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" | |
crossorigin=""/> | |
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js" | |
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" | |
crossorigin=""></script> |
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
@echo off | |
set TrueSource=E:\ProgramFiles\TrueCrypt\truecrypt | |
set Source=E:\ProgramFiles\TrueCrypt\test | |
set Drive=P: | |
set KeyFile=E:\ProgramFiles\TrueCrypt\keyfile1 | |
set Password=abcd1234ABCD!@#$ | |
set BrowserPath="C:\Program Files (x86)\Internet Explorer\iexplore.exe" | |
set WebSite=ELS | |
set URL="http://localhost:86" |
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
/* | |
* This Java source file was to test the database connection. | |
*/ | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; |
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
/* | |
* Assuming user has folder "Important" -> C:/Important | |
* The folder has confidential data | |
* In this example, we are trying to show the command injection attack | |
*/ | |
public class CommandInjectionExample { | |
public static void main(String[] args) { | |
evalScript(); | |
} |
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 ConvertRupeesToEnglish(ByVal MyNumber) | |
Dim Temp | |
Dim Rupees, Paise | |
Dim DecimalPlace, Count | |
ReDim Place(9) As String | |
Place(2) = " Thousand " | |
Place(3) = " lakh " | |
Place(4) = " Crore " | |
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
BEGIN | |
FOR record IN (SELECT object_name, object_type | |
FROM user_objects | |
WHERE object_type IN | |
('TABLE', | |
'VIEW', | |
'PROCEDURE', | |
'FUNCTION', | |
'SEQUENCE', | |
'TYPE', |
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
for /f "tokens=* delims=" %%a in ('dir . /s /b') do ( | |
"dos2unix.exe" %%a | |
) |