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
addDrag: function(v){ | |
var group = ['child']; | |
if(v.hasClass('story')){ | |
group = ['story']; | |
} | |
var dd = new Y.DD.Drag({ | |
node: v, | |
groups: group, | |
target: { | |
padding: '0 0 0 20' |
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
/** | |
* Copyright (C) 2010 joe.d.developer@gmail.com | |
* Released under AGPL, http://www.gnu.org/licenses/agpl.html. | |
* | |
* Helper function to break up processing of large sets | |
* uses yui asyncqueue internally | |
* @param set {array} array to iterate over. | |
* @param fn {function} function to call on each item | |
* @param co {object} optional context object | |
* @param cb {fn} optional function to call when all processing is complete. |
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
YUI.add('plugin-panorama', function(Y){ | |
var TRIGGER_CLASS = '.item'; | |
Y.namespace('Plugin').Panorama = Y.Base.create('panorama', Y.Plugin.Base, [], { | |
_host : null, | |
_mouseMove : null, | |
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 ddDel = new Y.DD.Delegate({ | |
container: container, | |
nodes: selector, | |
dragConfig:{groups: groups}, | |
target:true | |
}); |
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
YUI.add('unomi-view-plugin-clipboard', function (Y) { | |
var NSVP = Y.namespace('Unomi.View.Plugin'); | |
/** | |
* Adds flash based clipboard functionality to a page. | |
* The default behavior is to react to mouseover events of elements with | |
* a "data-action"="clipboard" attribute and expect it to wrap an A tag with the relevant text to be copied | |
* This behavior can be modified by intercepting the "syncClipBoard" event. | |
* See usage example in javascripts/unomi/view/support_tool/unomi-view-support_tool-ticketlist.js | |
* @extends Plugin |
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
Credit due: http://www.linuxquestions.org/questions/fedora-35/lvm-partition-resizing-666683/ | |
fdisk resize per above, reboot. | |
pvresize /dev/sda2 | |
lvresize /dev/vg_scilux1/lv_root -l +100%FREE -r | |
done. |
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
/** helper function to dynamically include js */ | |
var js; | |
function include_js(file) { | |
var html_doc = document.getElementsByTagName('head')[0]; | |
js = document.createElement('script'); | |
js.setAttribute('type', 'text/javascript'); | |
js.setAttribute('src', file); | |
html_doc.appendChild(js); | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 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
{ | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"id": "/", | |
"type": "object", | |
"description": "Results returned by WIN UAT API for successful AWBno searches", | |
"properties": { | |
"AirlineName": { | |
"id": "AirlineName", | |
"type": "string", | |
"description": "Human Readable Airline name.", |
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
{ | |
"AirlineName": "China Airlines Cargo", | |
"AirlinePrefix": "297", | |
"AirlineCodeIATA": "CI", | |
"AwbNumber": "30169624", | |
"Statuses": [ | |
{ | |
"AirportCode": "BKK", | |
"Details": [ | |
{ |
OlderNewer