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
@echo off | |
for /f "skip=1 tokens=2 delims==" %%A in ('wmic /namespace:\\root\wmi PATH MSAcpi_ThermalZoneTemperature get CurrentTemperature /value') do set /a "HunDegCel=(%%~A*10)-27315" | |
echo %HunDegCel:~0,-2%.%HunDegCel:~-2% Degree Celsius |
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
1. multiplication: | |
function input --> (x*y) | |
if ( either x or y is less than zero ){ | |
FOR loop: product = subtract x from zero y times | |
} else if ( both are greater than or both are less than zero ){ | |
FOR loop: product = add x to to zero y times | |
} |
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
invShell v0.1 by rahuldottech | |
----------------------------- | |
License: | |
MIT license - https://github.com/rahuldottech/license | |
Usage: | |
invShell.vbs <command/script> <arguments> | |
Example: |
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
buttonWait v0.1 by rahuldottech | |
--------------------------------- | |
(pause a script till a button is, y'know, *pressed*...) | |
This code is in the public domain. | |
Proper schematic at https://arduino.stackexchange.com/a/56805/50258 | |
-- |
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
#include<iostream> | |
int main(){ | |
using namespace std; | |
for(int i=1; i<101; i++){ | |
if(i%3==0){ | |
cout<<"Fizz"; | |
} | |
if(i%5==0){ | |
cout<<"Buzz"; | |
} |
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
powershell-download by rahuldottech | |
License: | |
MIT license - https://github.com/rahuldottech/license |
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
<?php | |
require 'varDx.php'; | |
$dx = new \varDx\cDX; //create object | |
$dx->def('file1.txt'); //define data file | |
$a = "this is a string"; | |
$dx->write('val1', $a); //write key to file | |
$dx->modify('val1', "this is another string"); //modify value of key | |
echo $dx->read('val1'); //read value of key | |
if($dx->check('val1')){ //check if key exists | |
del('val1'); //delete key |
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
<?php | |
require 'secsesh.php'; | |
session_start(); | |
if(/*credentials check out*/){ | |
\secSesh\start(); | |
} | |
if(\secSesh\check()){ | |
// do stuff after successful login | |
header( 'Location: somePage.php' ); | |
} |
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
<?php | |
require 'secsesh.php'; | |
session_start(); | |
if(/*credentials check out*/){ | |
s_start(); | |
} | |
header( 'Location: somePage.php' ); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder