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 | |
header('Content-Type: application/json'); | |
try{ | |
$host="db.ist.utl.pt"; | |
$port=3306; | |
$socket=""; | |
$user="ist178013"; | |
$password="gzhs9356"; |
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
SELECT reg_pag.userid | |
FROM pagina INNER JOIN reg_pag ON reg_pag.pageid = pagina.pagecounter INNER JOIN registo ON registo.regcounter = reg_pag.regid | |
WHERE pagina.ativa=1 AND reg_pag.ativa = 1 AND registo.ativo = 1; |
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
SELECT * FROM campo INNER JOIN valor ON campocnt=campoid WHERE campo.ativo=1 AND valor.ativo=1 |
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
{ | |
"theme": "Material-Theme-Darker.sublime-theme", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker-OceanicNext.tmTheme", | |
"font_size": 8, | |
"word_wrap": "false", | |
"enable_tab_scrolling": false, | |
"overlay_scroll_bars": "enabled", | |
"indent_guide_options": [ "draw_normal", "draw_active" ], |
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 (delay, type) { | |
const g = (c) => document.getElementsByClassName(c); | |
const pics = g('_si7dy'); | |
function iteration() { | |
const heart = g((type === 'like') ? 'coreSpriteHeartOpen' : 'coreSpriteHeartFull')[0]; | |
heart && heart.click(); | |
g('coreSpriteRightPaginationArrow')[0].click(); | |
} |
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(e,t){const i=e=>document.getElementsByClassName(e);i("_si7dy");function r(){const e=i("like"===t?"coreSpriteHeartOpen":"coreSpriteHeartFull")[0];e&&e.click(),i("coreSpriteRightPaginationArrow")[0].click()}new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.length&&(setTimeout(r,100),new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.length&&setTimeout(r,100)})}).observe(e.addedNodes[0].firstChild.children[1].firstChild.firstChild,{attributes:!0,childList:!0,characterData:!0}))})}).observe(document.body,{childList:!0})}(0,"like"); |
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
callback({"status": 200,"comment": "bla bla bla","content": "nothing here"}); |
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 lang="en"> | |
<head> | |
<title>TITLE</title> | |
<meta charset="UTF-8" content="text/html"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content="DESCRIPTION GOES HERE"> | |
<meta name="keywords" content="KEYWORD1 KEYWORD2 KEYWORD3 zettca"> | |
</head> |
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
// 1. Go to http://prntscr.com/gallery.html > load all images. Get images to imgCodes | |
var codes = [].slice.call(document.getElementsByClassName("gallery-item")).map((el) => el.getAttribute("data-id36")); | |
// 2. Go to prntscr-snatcher App. Use the app to get the imgurCodes | |
var imgurCodes = []; | |
for (var i=imgCodes.length-1; i>=0; i--){ | |
var xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function(){ | |
if (xhttp.readyState == 4 && xhttp.status == 200){ | |
if (xhttp.responseText){ |
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
"use strict"; | |
String.prototype.solve = function(){ | |
let str = this; | |
let digit = str[0]; | |
let count = 1; | |
let res = ""; | |
for (var i=1; i<str.length; i++){ | |
if (str[i] == digit){ |
OlderNewer