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
#include<iostream> | |
#include<cmath> | |
using namespace std; | |
typedef float f; | |
class vector3D { | |
f x=0,y=0,z=0; | |
f get_square(); | |
public: | |
vector3D(f x, f y, f z); |
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 | |
include "flag.php"; | |
show_source(__FILE__); | |
class user { | |
var $name; | |
var $pass; | |
var $secret; | |
} |
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
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC5V0ecAADNR0lEQVR42uz9d5Sd12Hfe//2ftrpdTqmoQNEJcEGVpESVShZsiJZskxFN6+d5PpNtbOc+968yR9eTl3rZiVrvblJbnJj+Vq2pdiW1WyJEkmRFBtYQJAA0QdlML3P6U/f+/3jzBwAbKYlkwLI30caAhxOAfc5nPM9++xnb/FQ/wMaRERERET0jkgOARERERERA5qIiIiIiAFNRERERMSAJiIiIiJiQBMRERERMaCJiIiIiBjQHAIiIiIiIgY0EREREREDmoiIiIiIAU1ERERExIAmIiIiImJAExERERExoDkEREREREQMaCIiIiIiBjQREREREQOaiIiIiIgBTURERETEgCYiIiIiYkBzCIiIiIiIGNBERERERAxoIiIiIiIGNBERERERA5qIiIiIiAFNRERERMSA5hAQERERETGgiYiIiIgY0EREREREDGgiIiIiIgY0EREREREDmoiIiIiIAc0hICIiIiJiQBMRERERMaCJiIiIiBjQREREREQMaCIiIiIiBjQREREREQOaQ0BERERExIAmIiIiImJAExERERExoImIiIiIGNBERERERAxoIiIiIiIGNIeAiIiIiIgBTURERETEgCYiIiIiYkATERERETGgiYiIiIgY0EREREREDGgOARERERERA5qIiIiIiAFNRERERMSAJiIiIiJiQBMRERERMaCJiIiIiBjQHAIiIiIiIgY0EREREREDmoiIiIiIAU1ERERExIAmIiIiImJAExERERExoDkEREREREQMaCIiIiIiBjQREREREQOaiIiIiIgBTURERETEgCYiIiIiYkBzCIiIiIiIGNBERERERAxoIiIiIiIGNBERERERA5qIiIiIiAFNRERERMSA5hAQERERETGgiYiIiIgY0EREREREDGgiIiIiIgY0EREREREDmoiIiIiIAc0hICIiIiJiQBMRERERMaCJiIiIiBjQREREREQMaCIiIiIi |
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 PIL import Image | |
from PIL import ImageFilter | |
import numpy as np | |
img = Image.open('65.png').convert('RGBA') | |
CROP_LOCATIONS = { | |
# L, T, R, B |
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 highlightNodes(el, tagName) { | |
for ( let element of el.childNodes ) { | |
if ( element.childNodes.length === 0 && element.nodeType === Node.TEXT_NODE) { | |
const newChild = document.createElement(tagName) | |
newChild.innerText = element.nodeValue | |
element.parentElement.replaceChild(newChild, element) | |
} | |
else { | |
highlightNodes(element, tagName) | |
} |
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 check_binary_search_tree_(root): | |
nodes = [root] | |
isTreeValid = True | |
while len(nodes) != 0: | |
currentNodes = [i for i in nodes] | |
nodes.clear() | |
for node in currentNodes: | |
print("node data is " + str(node.data)) | |
if node.left != None: | |
print("node left data is " + str(node.left.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
class Node: | |
def __init__(self, info): | |
self.info = info | |
self.left = None | |
self.right = None | |
self.level = None | |
def __str__(self): | |
return str(self.info) |
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
class Heap { | |
constructor() { | |
this.heap = [] | |
} | |
getElement(i) { | |
return heap[i] !== undefined ? heap[i] : false | |
} |
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 Input { | |
/** | |
* @var $operation int | null | |
*/ | |
private $operation = null; |
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
document.onkeypress = function(evt) { | |
evt = evt || window.event; | |
var charCode = evt.keyCode || evt.which; | |
var charStr = String.fromCharCode(charCode); | |
if ( charStr !== '/' ) { | |
return; | |
} | |
var inputs = document.querySelectorAll('input[type=text]') | |
if ( inputs.length === 0 ) { | |
return; |