show dbs
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
<? | |
// str_replace removes the JS part and makes it into a normal JSON file | |
$followers=json_decode(str_replace('window.YTD.follower.part0 = ','',file_get_contents(__DIR__.'/followers.js')),true); | |
echo "\n\n"; | |
echo number_format(count($followers)).' followers'; | |
echo "\n\n"; | |
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
import { useNavigationParam } from 'react-navigation-hooks'; | |
import { graphql, usePreloadedQuery } from 'react-relay/hooks'; | |
const query = graphql` | |
query TaskDetailQuery($nodeId: ID!) { | |
task: node(id: $nodeId) { | |
... on Task { | |
title | |
} | |
} |
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
import datetime, time, os | |
from dateutil.relativedelta import relativedelta | |
from selenium import webdriver | |
tmp_dir = os.path.join(os.getcwd(), 'forex') | |
if not os.path.isdir(tmp_dir): os.makedirs(tmp_dir) | |
options = webdriver.ChromeOptions(); | |
options.add_argument("--window-size=1300,900") | |
options.add_experimental_option("prefs", { |
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
<? | |
// | |
// BLUNBLE BOT (by @levelsio) | |
// | |
// "Blunble" is Korean internet slang for [BL]ock [UNBL]ock | |
// If you block and unblock somebody on Twitter, they stop following you. | |
// It's a polite way of getting rid of trolls without permanently blocking | |
// because blocking usually results in more anger and more trolling. | |
// | |
// WHAT THIS SCRIPT DOES: |
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 flask import Flask | |
from flask_sqlalchemy import SQLAlchemy | |
import os | |
import graphene | |
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField | |
from flask_graphql import GraphQLView | |
################################# | |
app = Flask(__name__) | |
app.debug = True |
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
/* | |
--PIETZ OBFUSCATE CODE-- | |
2019-06-01 | |
from MAKEbook.io | |
Instructions: | |
1) put this in your functions.php file | |
2) add this to the post you want to obfuscate, on top | |
3) [obfuscate] | |
4) to start obfuscating, add a HTML code or HTML block with <start></start> |
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
# NOTE: Be sure to set the API key further down in the code! | |
require "net/http" | |
require "uri" | |
require "json" | |
class WIP | |
def initialize(api_key:) | |
@api_key = api_key | |
end |
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
/* ******************************************************************************************* | |
* GLOBAL CONFIG | |
* Vue.config is an object containing Vue’s global configurations. | |
* You can modify its properties listed below before bootstrapping your application. | |
* https://vuejs.org/v2/api/#Global-Config | |
* ******************************************************************************************* */ | |
// Configure whether to allow vue-devtools inspection | |
Vue.config.devtools = true |