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
| function uuid-generator() { | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); | |
| return v.toString(16); | |
| }); | |
| } |
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
| if(!$items->isEmpty()) { | |
| $state = $items->getString(); | |
| $wf_state = entity_load('workflow_state' , $state); | |
| return $wf_state->label; | |
| } | |
| return FALSE; |
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 | |
| /** | |
| * @file | |
| * Contains \Drupal\program_workflow\Plugin\Field\FieldFormatter\ProgramWorkflowTextWorkflowStateFormatter. | |
| */ | |
| namespace Drupal\program_workflow\Plugin\Field\FieldFormatter; | |
| use Drupal\Core\Field\FormatterBase; |
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
| // Check the stuff per operation for node | |
| // This logic is for contect access stuff | |
| function _xxxxx_workflow_entity_access_unpublished_nodes($entity, $account, $op = 'view') { | |
| $permission = 'myeap ' . $op . ' unpublished nodes'; | |
| $has_view_permission = $account->hasPermission($permission); | |
| $node_roles = content_access_per_node_setting($op, $entity); | |
| $user_roles = $account->getRoles(); | |
| $intersect_roles = array_intersect($node_roles, $user_roles); | |
| if(count($intersect_roles) && $has_view_permission) { |
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 | |
| //Added by @adal | |
| if(isset($_GET['zipcode']) && trim($_GET['zipcode'])) { | |
| $zipcode_latlong = _sss_custom_zipcode2geo_array(trim($_GET['zipcode'])); | |
| $zipcode_location = new stdClass(); | |
| $zipcode_location->longitude = $zipcode_latlong['long']; | |
| $zipcode_location->latitude = $zipcode_latlong['lat']; | |
| $zipcode_location->balloon_text = "Your search for this zipcode : " . $_GET['zipcode']; | |
| $zipcode_location->open = ''; | |
| array_unshift($locations, $zipcode_location); |
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
| yaml = require('js-yaml'); | |
| fs = require('fs-extra'); | |
| _ = require('underscore'); | |
| var from_dir = ""; | |
| var to_dir = ""; | |
| runthrough(from_dir, to_dir); |
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
| a { | |
| background: transparent; | |
| } | |
| mark { | |
| background: #ff0; | |
| color: #000; | |
| } |
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
| Hierarical select for book outline | |
| All Book menu cached | |
| Book Path (based on menu), views field | |
| Book Views by parents | |
| Better Book filter for views | |
| Get Xth parent of a book page | |
| Get Xth Child of a book page | |
| Get immediate child(counts and items) of a book page | |
| Get All childs(counts and items) of a book page | |
| JSON API for quick stuff for book. |
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
| Features Details | Cindicator | Trakinvest | Stox | Enigma catalyst | Coinfi | Santiment | cryptics | iconomi | Red pulse | |
|---|---|---|---|---|---|---|---|---|---|---|
| Virtual Trading | No | Yes, in usage with half bn $ of virtual stocks | Yes | N/A | No | No | No | TBA | TBA | |
| Social Trading | No | Yes, in usage | No | No | No | Planned in future | No | TBA | TBA | |
| Education / Training | No | Yes, in usage with hireing program partner with top institues | No | No | No | No | No | TBA | TBA | |
| Certification | No | 1000+ certified, 100+ hired | No | No | No | No | No | TBA | TBA | |
| Copy trade | No | Yes, in usage | No | No | No | No | No | TBA | TBA | |
| Influencer / Top Trader | No | Yes, in usage top traders can earn tokens for allowing others to follow | No | No | No | No | Planned | TBA | TBA | |
| Invesment tracking | No | Yes, in usage | No | N/A | Planned | Planned | Planned | TBA | TBA | |
| Mobile Apps | Yes | Yes | No | No | No | No | No | TBA | TBA | |
| Signal / Predictions | Yes, survey method | Yes, Survey, AI, Copy signal from top performaers, Sentiments | Yes, survey method | TBA | TBA | TBA | TBA | TBA | TBA |
OlderNewer