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 | |
/** | |
* This code disables the Captcha verification when using WPGraphQL or WP REST API | |
* It fixes the "anr_error" issue. | |
* | |
* Put this code in your functions.php | |
*/ | |
add_action( | |
'rest_api_init', |
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
#!/usr/bin/env python3 | |
# Licence: GPLV3 | |
import requests | |
from bs4 import BeautifulSoup as soup | |
from sys import argv as argv | |
from time import sleep | |
def get_channel_id(url): |
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 | |
function sendWithPhpMailer($subject, $body, $reply) { | |
require(ABSPATH . WPINC . '/class-phpmailer.php'); | |
require(ABSPATH . WPINC . '/class-smtp.php'); | |
// date_default_timezone_set( 'America/Sao_Paulo' ); | |
$blogname = wp_strip_all_tags( trim( get_option( 'blogname' ) ) ); | |
$smtpHost = wp_strip_all_tags( trim( get_option( 'smtp_host' ) ) ); |
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 c4d | |
def main(): | |
global vecoutp | |
obj = doc.GetActiveObject() | |
tag = doc.GetActiveTag() | |
if not tag: | |
tag = c4d.BaseTag(c4d.Texpresso) | |
obj.InsertTag(tag) | |
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
# coding: utf-8 | |
""" | |
A GeUserArea Exemple for display multiple content. | |
Hardly based on https://github.com/NiklasRosenstein/c4d-2048 from Niklas | |
""" | |
__author__ = 'Adam Maxime - Graphos <gr4ph0s(at)hotmail.fr>' | |
__version__ = '1.0' | |
import c4d |
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
# Copyright (C) 2016 Martina Pugliese | |
from boto3 import resource | |
from boto3.dynamodb.conditions import Key | |
# The boto3 dynamoDB resource | |
dynamodb_resource = resource('dynamodb') | |
def get_table_metadata(table_name): |
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
"""ObjectBrowser | |
Based on: https://developers.maxon.net/?p=439""" | |
# ====== IMPORTS ====== # | |
import c4d | |
# ====== GLOBALS ====== # |
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
#!/usr/bin/env python | |
# ddb_lsi_example: A sample program to show how to use Local Secondary Indexes | |
# in DynamoDB, using Python and boto3. | |
# | |
# Copyright 2016 Parijat Mishra | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
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
# Copy animation crudely to a file and back | |
import c4d | |
import c4d.gui as gui | |
import c4d.storage as storage | |
import json | |
import urllib | |
import os.path | |
import datetime | |
import platform |
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
# Isolate selection | |
import c4d | |
import c4d.gui as gui | |
import urllib | |
import datetime | |
import platform | |
import traceback | |
import contextlib | |
import webbrowser |
NewerOlder