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 | |
/** | |
* 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 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 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 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 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 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 Niklas Rosenstein | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
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
"""ObjectBrowser | |
Based on: https://developers.maxon.net/?p=439""" | |
# ====== IMPORTS ====== # | |
import c4d | |
# ====== GLOBALS ====== # |
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
ident = 5159 | |
import c4d | |
print "************"*4 | |
print "Results for", ident | |
for key, value in vars(c4d).iteritems(): | |
if value == ident: | |
print(key) |
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
#!/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 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 |
NewerOlder