Skip to content

Instantly share code, notes, and snippets.

View ipeychev's full-sized avatar

Iliyan Peychev ipeychev

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Using AlloyEditor as an Angular directive</title>
<style type="text/css">
.container {
margin-left: 30px;
margin-top: 30px;
}
@ipeychev
ipeychev / alloyeditor-as-angular-directive.html
Last active June 20, 2016 12:25
AlloyEditor as an Angular directive
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Using AlloyEditor as an Angular directive</title>
<style type="text/css">
.container {
margin-left: 30px;
margin-top: 30px;
}
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-type'>
<title>AlloyEditor as React Module Example</title>
<link href="bower_components/alloyeditor/dist/alloy-editor/assets/alloy-editor-ocean-min.css" rel="stylesheet">
<style>
#main {
left: 100px;
--- FUNCTION SOURCE (y) id{0,0} ---
() { return this._y; }
--- END ---
--- FUNCTION SOURCE (len) id{1,0} ---
(v) {
// We are going to deoptimize here when we call
// loop the second time because hidden class of
// v2 does not match hidden class of v.
// We changed by adding a new property "name" to
// the object allocated with Vec2.
begin_compilation
name "y"
method "y:0"
date 1432500821000
end_compilation
begin_cfg
name "Z_Code generation"
begin_block
name "B0"
from_bci -1
begin_compilation
name "$.testTag"
method "$.testTag:0"
date 1432461307000
end_compilation
begin_cfg
name "Z_Code generation"
begin_block
name "B0"
from_bci -1
@ipeychev
ipeychev / autocomplete-input.jsp
Last active January 12, 2023 16:41
Example usage of AutoCompleteInput in Liferaty Portal 7 (aka master right now)
/*
* For the UI, it is using the awesome AutoComplete from http://yuilibrary.com/yui/docs/autocomplete/
* All the documentation you can find there, for example to retrive the data via AJAX, DataSource, etc. is valid here too.
* Also, options, specific to AutoComplete from YUI you can pass via 'acConfig.the-attribute-here'. Look at 'acConfig.resultFormatter' below.
*/
<aui:input name="test123" type="textarea" with="300" height="400" value=""/>
<aui:script use="liferay-autocomplete-input">
var lacInput = new Liferay.AutoCompleteInput(
$FontAwesomePath: "aui/alloy-font-awesome/font" !default;
@import "aui/alloy-font-awesome/scss/variables";
@import "aui/alloy-font-awesome/scss/mixins-alloy";
@import "aui/alloy-font-awesome/scss/path-alloy";
/** EVERYTHING BELOW WILL BE WRAPPED IN .AUI {} EXCEPT AT-RULES */
@import "aui_variables";
some clean css code with at rules here
@import "aui_variables";
$iconSpritePath: '../images/aui/glyphicons-halflings.png' !default;
$iconWhiteSpritePath: '../images/aui/glyphicons-halflings-white.png' !default;
@import "aui/bootstrap";
@import "aui_custom";
@import "aui/responsive";
@import "liferay_custom";