This file contains hidden or 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.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| class RSA | |
| { |
This file contains hidden or 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.Management; | |
| using System.Runtime.InteropServices; | |
| [DllImport("Srclient.dll")] | |
| public static extern int DeleteRestorePoint(int index); | |
| private void SearchAndDestroySystemRestore() | |
| { | |
| //Find sequence numbers of system restore points | |
This file contains hidden or 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
| export class base64decode{ | |
| private PADCHAR: string = '='; | |
| private ALPHA: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | |
| private getByte(s: string, i: number): number { | |
| const x = s.charCodeAt(i); | |
| return x; | |
| } | |
| private getByte64(s: string, i: number): number { |
This file contains hidden or 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
| package tp4768; | |
| import java.security.SecureRandom; | |
| import java.security.Security; | |
| import java.security.InvalidKeyException; | |
| import java.security.Key; | |
| import java.security.KeyPair; | |
| import java.security.KeyPairGenerator; | |
| import java.security.MessageDigest; |
This file contains hidden or 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
| package Game; | |
| import Interfaces.SolverInterface; | |
| public class SudokuSolver implements SolverInterface{ | |
| // the final boolean we return | |
| public boolean isCorrect; | |
| //number of squares in the puzzle |
This file contains hidden or 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
Show hidden characters
| { | |
| "compileOnSave": false, | |
| "compilerOptions": { | |
| "baseUrl": "./", | |
| "outDir": "./dist/out-tsc", | |
| "forceConsistentCasingInFileNames": true, | |
| "strict": true, | |
| "strictPropertyInitialization": false, | |
| "noImplicitAny": false, | |
| "noImplicitReturns": true, |
This file contains hidden or 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
| let symbols_dict:Array<string> = ['!','@','#','$','%','^','&','*','(',')','_','-','=','+','<','>',':','~',']','[']; | |
| let numbers_dict:Array<string> = ['1','2','3','4','5','6','7','8','9','0']; | |
| let lowercase_dict:Array<string> = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','x','y','z']; | |
| let uppercase_dict:Array<string> = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','X','Y','Z']; |
This file contains hidden or 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
| var mongoose = require('mongoose'); | |
| var uniqueValidator = require('mongoose-unique-validator'); | |
| var crypto = require('crypto'); | |
| var jwt = require('jsonwebtoken'); | |
| var secret = require('../config').secret; | |
| var UserSchema = new mongoose.Schema({ | |
| username: | |
| { |
This file contains hidden or 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
| static void Main(string[] args) | |
| { | |
| List<String> ids = new List<String>(); | |
| List<String> imgs = new List<String>(); | |
| Console.WriteLine("Dir -> "); | |
| var image_folder = Console.ReadLine(); | |
| string[] files = Directory.GetFiles(image_folder,"*", SearchOption.AllDirectories); | |
| foreach(string s in files) |
This file contains hidden or 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
| .bg { | |
| background-color: #4158d0; | |
| background-image: linear-gradient(43deg, #4158d0 0%, #c850c0 46%, #ffcc70 100%); | |
| /* Full height */ | |
| height: 100vh; | |
| } |
OlderNewer