Skip to content

Instantly share code, notes, and snippets.

@surferxo3
surferxo3 / notorm_demo.php
Last active July 26, 2020 11:45
NotORM demo of printing sql queries, handling notorm objects, and casting from objects to associative arrays in NotORM framework.
<?php
/*#############################
* Developer: Mohammad Sharaf Ali
* Designation: Web Developer
* Version: 1.0
*/#############################
// LIBRARIES
require_once 'db/NotORM.php';
@betobaz
betobaz / custom__modules__Accounts__clients__base__views__record__record.js
Created September 11, 2015 18:45
SugarCRM: Sidecar: Open create-actions layout in a drawer on demand
({
events:{
'click button': '_handlerClick',
},
_handlerClick: function(evt, el){
var modelPrefil = app.data.createBean("Accounts");
modelPrefil.set({
name: "Account name",
assigned_user_name: 1
});
@ricardo-rossi
ricardo-rossi / ElasticSearch.sh
Last active February 25, 2025 22:09
Installing ElasticSearch on Ubuntu 14.04
#!/bin/bash
### USAGE
###
### ./ElasticSearch.sh 1.7 will install Elasticsearch 1.7
### ./ElasticSearch.sh will fail because no version was specified (exit code 1)
###
### CLI options Contributed by @janpieper
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch
@milo
milo / .autoprepend.php
Created August 20, 2013 07:51
Handy Tracy/Nette Debugger in autoprepend file
<?php
function __nette($version = NULL) {
if ($version) {
require "/var/www/lib/nette/$version/Nette/loader.php";
} else {
require '/var/www/dev/nette/Nette/loader.php';
}
}