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 | |
function strtocamel($str, $separator = '_', $replace = true) | |
{ | |
return str_replace($separator, $replace ? '' : $separator, ucwords($str, $separator)); | |
} |
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 | |
function strtosnake($str) | |
{ | |
return ltrim(strtolower(preg_replace('/[A-Z]([A-Z](?![a-z]))*/', '_$0', $str)), '_'); | |
} |
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
setInterval(function () { | |
var poke_buttons = document.querySelectorAll('._4-u2._xct._4-u8 ._42ft._4jy0._4jy3._4jy1.selected._51sy'); | |
for (var i = 0; i < poke_buttons.length; i++) { | |
poke_buttons[i].click(); | |
} | |
}, 2000); |
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
window.onload = function () { | |
var ads = document.querySelectorAll('.adsbygoogle'); | |
var isReal = true; | |
for (var i = 0; i < ads.length; i++) { | |
if (ads[i].innerHTML.length === 0) isReal = false; break; | |
} | |
if (!isReal) { |
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
var interval; | |
var morePagerInterval; | |
var index = 0; | |
interval = setInterval(function() { | |
console.clear(); | |
var requests = document.querySelectorAll('.friendRequestItem'); | |
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
var list = document.getElementsByClassName('lists')[0]; | |
var min = 500; // ms | |
var max = 1500; // ms | |
var time = min; | |
var interval; | |
var timeout; | |
var invited = 0; | |
var limit = 999; | |
var stop = 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 | |
namespace App\Traits; | |
trait CheckRole | |
{ | |
/** | |
* The roles that belong to the user. | |
*/ | |
public function roles() |
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
<!--[if lt IE 11]> | |
<div align="center" style="z-index: 999; font-size: 16px; line-height: 24px; position: fixed; box-sizing: border-box; top: 0; left: 0; width: 100%; padding: 20px; background-color: #dd0000; color: white; font-family: sans-serif; font-weight: 900"> | |
Your browser is outdated. Please <a target="_blank" style="color: white; text-decoration: underline;" href="https://www.google.com/chrome/browser/desktop/index.html">click here</a> to download a new browser. | |
</div> | |
<div align="center" style="z-index: 999; font-size: 16px; visibility:hidden; line-height: 24px; box-sizing: border-box; top: 0; left: 0; width: 100%; padding: 20px; font-family: sans-serif; font-weight: 900"> | |
Your browser is outdated. Please click here to download a new browser.</a>. | |
</div> | |
<![endif]--> | |
<!--[if !IE]><!--> |
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
var interval; | |
var scrollInterval; | |
var index = 0; | |
var container = document.querySelector('.mtl._30d._5ewg._5n-u > div:nth-child(3) > div'); | |
interval = setInterval(function () { | |
var friendRequests = container.querySelectorAll('.friendRequestItem'); | |
var button = friendRequests[index].querySelector('button.selected'); | |
button.click(); | |
index++; |
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
var str = 'Adicionei um vídeo a uma playlist'; | |
function doDropdownDelete() { | |
var tweets = document.querySelectorAll('.js-tweet-text-container > p:first-child'); | |
console.clear(); | |
console.error(tweets.length); | |
for (var i = 0; i < tweets.length; i++) { | |
var text = tweets[i].textContent; |
OlderNewer