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
export function md5(inputString: string) { | |
const hc = "0123456789abcdef"; | |
function rh(n: number) { | |
let j, | |
s = ""; | |
for (j = 0; j <= 3; j++) | |
s += | |
hc.charAt((n >> (j * 8 + 4)) & 0x0f) + hc.charAt((n >> (j * 8)) & 0x0f); | |
return s; | |
} |
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
declare module 'dialogflow-fulfillment' { | |
import { DialogflowConversation } from 'actions-on-google'; | |
import { Request, Response } from 'express'; | |
export class Card extends RichResponse { | |
constructor(card: string | object); | |
public setButton(button: { | |
text: string, | |
url: string, |
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 | |
require './vendor/autoload.php'; | |
use Facebook\Facebook; | |
use Facebook\Exceptions\FacebookResponseException; | |
use Facebook\Exceptions\FacebookSDKException; | |
define( 'FB_GROUP_APP_BASE_URL', 'https://wdj.ac' ); | |
define( 'FB_GROUP_APP_CALLBACK_URL', FB_GROUP_APP_BASE_URL . '/facebook-auth.php?action=verify-user' ); | |
define( 'FB_GROUP_APP_ID', '' ); |
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 | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |