These rules are adopted from the AngularJS commit conventions.
const request = require('request'), | |
fs = require('fs'), | |
path = require('path'), | |
ca = fs.readFileSync(path.join(__dirname, 'root-ca.crt')); | |
const options = { | |
url: 'https://127.0.0.1:3443/', // any @alt_names will work | |
agentOptions: { | |
ca: ca | |
} |
List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.
http://www.w3.org/TR/WebCryptoAPI/
This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.
Steps to add lazy loadding on SugarCRM 6.5.x subpanel:
- Step 1: Configure "hide_subpanel" core setting to false in config_override.php file to disable subpanel loading : http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_6.5/02_Application_Framework/Helper_Classes/Configurator/Core_Settings#hide_subpanels
- Step 2: Define a logic hook for the entire application
- Step 3: Design the JS of the logic hook
- Step 4: Make a Quick Repair & Rebuild :-)
<?php | |
class FieldChangeHook | |
{ | |
protected static $fetchedRow = array(); | |
/** | |
* Called as before_save logic hook to grab the fetched_row values | |
*/ | |
public function saveFetchedRow($bean, $event, $arguments) |
<?php | |
function pre_install() | |
{ | |
global $current_user; | |
require_once('include/utils.php'); | |
require_once('include/utils/file_utils.php'); | |
require_once('config.php'); | |
require_once('include/MVC/Controller/SugarController.php'); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# Copyright (C) 2013 Wesley Baugh | |
"""Tools for text classification. | |
Extracted from the [infer](https://github.com/bwbaugh/infer) library. | |
""" | |
from __future__ import division | |
import math | |
from collections import defaultdict, namedtuple, Counter | |
from fractions import Fraction |