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 | |
echo base64_decode(strrev(str_rot13($argv[1]))).PHP_EOL; |
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
function copyToClipoboardBootstrap3AppendToInput(input) { | |
var parent = input.parentNode; | |
var div = document.createElement('div'); | |
div.classList.add('input-group'); | |
var copyBtn = document.createElement('button'); | |
copyBtn.classList.add('btn'); | |
copyBtn.classList.add('btn-default'); | |
copyBtn.setAttribute('type', 'button'); | |
copyBtn.setAttribute('title', 'Click to copy to clipboard'); |
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 | |
/* | |
* This script is intended to prove if monty hall paradox is worthy | |
* to change the user choice to the other 2 from 3 options (guessing the right choice) | |
* from a TV show where the presenter presents 3 options (let's say A, B or C) | |
* to the user guess, the user so, chooses one position and then | |
* the TV presenter says another option that IS NOT the correct, then the user will | |
* have 2 options: stays with the initial choice or change it to the other one left. | |
* | |
* The paradox says that the best choice is to change your initial choice to the other |
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
list(map(lambda x: (__import__('sys').platform.__ne__('\x77\x69\x6e32') and __import__('ctypes').cdll.LoadLibrary('libc.so.6') or __import__('ctypes').cdll.msvcrt).putchar(__import__('ctypes').c_char(__import__('ctypes').cast((__import__('ctypes').c_int64 * 2)(8583909746840200520, 11138535027311), __import__('ctypes').POINTER(__import__('ctypes').c_char))[int(x, 0x10)])), '0123456789abcd')) and None |
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
function ironicaze(text) { | |
return text.split('').map((char, i) => i % 2 == 0 ? char.toLowerCase() : char.toUpperCase() ).join(''); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Supreme ASCII TABLE</title> | |
<style type="text/css"> | |
html { | |
font-family: sans-serif; | |
} |
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 | |
; rem https://github.com/npocmaka/batch.scripts/edit/master/hybrids/iexpress/bat2exeIEXP.bat | |
;if "%~2" equ "" ( | |
; echo usage: %~nx0 batFile.bat target.Exe | |
;) | |
;set "target.exe=%__cd__%%~2" | |
;set "batch_file=%~f1" | |
;set "bat_name=%~nx1" | |
;set "bat_dir=%~dp1" |
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
Set WshShell = CreateObject("WScript.Shell") | |
Function ConvertToKey(Key) | |
Const KeyOffset = 52 | |
i = 28 | |
Chars = "BCDFGHJKMPQRTVWXY2346789" | |
Do | |
Cur = 0 | |
x = 14 | |
Do |
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 | |
$db = new PDO('sqlite:csvdata.sqlite'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
if ($file = fopen("parsed.csv", "r")) { | |
while(!feof($file)) { | |
$line = fgets($file); |
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 | |
$aFile = file('README.md', FILE_TEXT); | |
$licensed_file = fopen('NEW_README.md', 'wb+'); | |
// Stub: [](/LICENSE) | |
// pattern to search =  | |
foreach ($aFile as $line_num => $line) { |