Answers to the what foss project are you survey
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
The following bash command... | |
for TLD in $(grep -E '^[a-z]+$' public_suffix_list.dat); do echo $(grep $TLD /usr/share/dict/words | wc -l) $TLD; done | grep -v ^0 | sort -nr | |
...using a list of tlds from https://publicsuffix.org/list/public_suffix_list.dat gives | |
16147 in | |
13129 es | |
9573 ng | |
9276 re |
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 is very much WIP / proof of concept / scratching an itch. Lots of stuff missing, like ACL. | |
Just sharing some early attempts at WP plugin development. Feedback welcome. | |
For example... |
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 | |
public function invoke( | |
$names, | |
&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6, | |
$fnSuffix | |
) { | |
if (is_array($names) && !defined('CIVICRM_FORCE_LEGACY_HOOK') && \Civi\Core\Container::isContainerBooted()) { | |
$event = \Civi\Core\Event\GenericHookEvent::createOrdered( | |
$names, | |
array(&$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6) |
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 | |
// Reference other entities in params with '{{entity.tag}}' | |
echo "Creating demo data...\n"; | |
$entities['ChatConversationType'] = [ | |
'pets' => [ | |
'name' => 'Cats or dogs?', | |
'timeout' => '30' |
(*FIXME: In one or two paragraphs, describe what the extension does and why one would download it. *)
The extension is licensed under AGPL-3.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
var Inky = require('inky').Inky; | |
var cheerio = require('cheerio'); | |
var options = {}; | |
var input = '<row></row>'; | |
// The same plugin settings are passed in the constructor | |
var i = new Inky(options); | |
var html = cheerio.load(input) |
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 php | |
<?php | |
// composer require symfony/yaml (or incorperate it into civicrm-docs (or similar) to get this up and running. | |
require __DIR__ . '/vendor/autoload.php'; | |
if(!realpath($argv[1])){ | |
die("Could not find {$argv[1]}\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
<?php | |
class CRM_Whizzy_Page_Whiz extends CRM_Core_Page { | |
public function run() { | |
$rule = new \Recurr\Rule; | |
parent::run(); | |
// etc... |