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
let likes = 0; | |
let autoLike = setInterval(() => { | |
const heart = document.querySelector('svg[aria-label="Like"]'); | |
const arrow = document.querySelector('svg[aria-label="Next"]'); | |
if (heart) { | |
window.scrollTo(0, document.body.scrollHeight); | |
heart.parentNode.click(); | |
likes++; | |
console.log(`You've liked ${likes} post(s)`); | |
} |
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 namespace Classes\Api; | |
use DateTime; | |
use Exception; | |
use \GuzzleHttp\Client as GuzzleHttp; | |
use GuzzleHttp\Exception\BadResponseException; | |
use GuzzleHttp\Exception\ClientException; | |
use GuzzleHttp\Exception\RequestException; | |
use GuzzleHttp\Exception\ServerException; |
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 | |
use October\Rain\Support\Collection; | |
use Genkgo\Camt\Config as GenkgoConfig; | |
use Genkgo\Camt\Reader as GenkgoReader; | |
use Money\Currencies\ISOCurrencies; | |
use Money\Formatter\DecimalMoneyFormatter; | |
class PaymentsParse |
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
configureWebpack: { | |
entry: { | |
app: [ | |
'./src/assets/scss/app.scss' | |
] | |
}, | |
resolve: { | |
alias: { | |
'components': path.join(__dirname, '/src/components'), | |
} |
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 | |
:start | |
e:\steamcmd\steamcmd.exe +login anonymous +force_install_dir e:\rustserver\ +app_update 258550 -beta staging +quit | |
:juststart | |
RustDedicated.exe -batchmode -server.port 28015 -server.hostname "My Server" ^ | |
-rcon.port 28016 ^ | |
-rcon.password "password" ^ | |
-rcon.web 1 ^ | |
-server.description "Hey I did a thing" ^ | |
-server.url "Your web page or discord link" ^ |
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
const contextQuery = require.context('./queries', true, /\.(gql|graphql)$/) | |
const query = {} | |
contextQuery.keys().forEach((filename) => { | |
const queryKey = filename.split('/').pop().replace(/.gql|.graphql/i, '') | |
query[queryKey] = contextQuery(filename) | |
}) | |
export default query |
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
import Vue from 'vue' | |
// Truncate | |
Vue.filter('truncate', function (text, length = 30, clamp = '...') { | |
if (text.length <= length) { | |
return text | |
} else { | |
return text.substring(0, length) + clamp | |
} | |
}) |
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
sv_cheats 1 | |
alias fogon "fog_override 1; fog_maxdensity 1500; fog_color 0 255 0; fog_start 0; fog_end 1; bind p fogoff" | |
alias fogoff "fog_override 0; bind p fogon" | |
bind p fogon |
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
{ | |
"editor.minimap.enabled": true, | |
"files.associations": { | |
"*.vue": "vue" | |
}, | |
"eslint.enable": true, | |
"eslint.options": { | |
"extensions": [ | |
".html", | |
".js", |
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 debounce(callback, wait, context = this) { | |
let timeout = null | |
let callbackArgs = null | |
const later = () => callback.apply(context, callbackArgs) | |
return function() { | |
callbackArgs = arguments | |
clearTimeout(timeout) | |
timeout = setTimeout(later, wait) |
NewerOlder