Skip to content

Instantly share code, notes, and snippets.

View rxaviers's full-sized avatar

Rafael Xavier de Souza rxaviers

View GitHub Profile

Messy layout shown by jorn:

Messy layout shown by jorn


I think it is a OS thing (font thing). Locally (linux), it's displaying just fine. I've tested several other OSxBrowser combinations using Browserstack (below) and they are ok.

It would be good to know what changes would make it look good to you. Plz just let me know.

@rxaviers
rxaviers / gist:4564078
Last active December 11, 2015 07:08
Theme Gallery
[ { name: 'UI lightness',
fullQuerystring: 'ffDefault=Trebuchet%20MS%2CTahoma%2CVerdana%2CArial%2Csans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=gloss_wave&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=highlight_soft&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=glass&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=glass&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=highlight_soft&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=diag
#! /usr/bin/node
require('nodetime').profile();
var match, params,
async = require( "async" ),
bunchOfGenerates = [],
filename = "ui-icons_999999_256x240.png",
ThemeRoller = require( "./lib/themeroller" );
// ui-icons_<color>_256x240.png
#! /bin/bash
function generateIcon {
convert template/themeroller/icon/mask.png -background $COLOR -alpha shape - > /dev/null
}
I=1
COLOR="#999999"
for i in `seq 1 10000`; do
diff --git a/lib/themeroller.image.js b/lib/themeroller.image.js
index 2acf1df..f7aa855 100644
--- a/lib/themeroller.image.js
+++ b/lib/themeroller.image.js
@@ -51,6 +51,7 @@ function stream2Buffer( callback ) {
var generateIcon, generateImage, generateTexture,
cacheDirectory = __dirname + "/../tmp/cache",
+ cachingLock = {},
concurrentQueues = 4,

Update download builder

$ npm install download.jqueryui.com

Change config.file, use our custom "parent" branch and remove legacy entry.

$ vim node_modules/download.jqueryui.com/config.json
@rxaviers
rxaviers / gist:4955345
Last active December 13, 2015 18:28
Diff of jquery-ui.css from downloaded theme vs. found on themes bundle .zip
--- ./jquery-ui-themes-1.10.0/themes/eggplant/jquery-ui.css 2013-01-17 16:29:20.000000000 -0200
+++ ./jquery-ui-1.10.0.custom/development-bundle/themes/eggplant/jquery-ui.css 2013-02-14 10:24:04.000000000 -0200
@@ -1,7 +1,8 @@
-/*! jQuery UI - v1.10.0 - 2013-01-17
+/*! jQuery UI - v1.10.0 - 2013-02-14
* http://jqueryui.com
-* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
-* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
+* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery
@rxaviers
rxaviers / gist:4955409
Last active December 13, 2015 18:28
Diff of jquery.ui.theme.css from downloaded theme vs. found on themes bundle .zip
--- ./jquery-ui-themes-1.10.0/themes/eggplant/jquery.ui.theme.css 2013-01-17 16:28:37.000000000 -0200
+++ ./jquery-ui-1.10.0.custom/development-bundle/themes/eggplant/jquery.ui.theme.css 2013-02-14 10:24:04.000000000 -0200
@@ -8,7 +8,7 @@
*
* http://docs.jquery.com/UI/Theming/API
*
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?zThemeParams=5d000001004906000000000000003d8888d844329a8dfe02723de3e570162cf18d27450c454aa2f2e374d1d127fabb9ebc66c3ee5a70fb154870371702db6720bcd83f0ecbb2131337f10a086e219c538a2003e4a05b37f637b91dbf9e5ea1a30eee0ffb74635c67587b16e39b844855d43f178d38275889cd939f1184eeca71f7e594e6e6969981e7ac42b5d73eacc454040d42a848c38dbab510bc206ef819374dd2146a7eec368c7e560f168b86d711625183830682c415c5f90a7e13db5e9a18ca9fdf66864b87f7052ba46f4a26ef4108c7f74c5a64b5568981db31f7182aaa50d6ae52faf662900dc3a3e8b1e4ee45f42ba7ebbb7f37a088430db618425c4f2dd19d3ac3aeadebaecd90dc2d657e528e7c01e4a60d479b36ed9941433e44c92a105bd263bd19cdedf72929a8d67b9e19bca2d70990186dd2892c42f1dc346d306f
2013-02-20T14:17:38-03:00 0:00.000 0.000u 6.6.2 Configure convert[32143]: utility.c/ExpandFilenames/902/Configure
Command line: convert {-debug} {all} {-size} {40x100} {xc:#aaa} {template/themeroller/texture/flat.png} {-compose} {dissolve} {-define} {compose:args=0,100} {-composite} {/tmp/output.png}
2013-02-20T14:17:38-03:00 0:00.000 0.000u 6.6.2 Configure convert[32143]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/ImageMagick-6.6.2/config/coder.xml"
2013-02-20T14:17:38-03:00 0:00.010 0.000u 6.6.2 Configure convert[32143]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/lib/ImageMagick-6.6.2/config/coder.xml"
2013-02-20T14:17:38-03:00 0:00.010 0.000u 6.6.2 Configure convert[32143]: configure.c/GetConfigureOptions/564/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6.6.2/coder.xml"
2013-02-20T14:17:38-03:00 0:00.010 0.000u 6.6.2 Configure convert[32143]: configure.c/GetConfigureOptions/564/Configure
Sea
@rxaviers
rxaviers / gist:4998952
Last active November 8, 2017 13:45
Compile and install ImageMagick from source

Commands:

$ wget http://www.imagemagick.org/download/legacy/ImageMagick-6.6.9-10.tar.gz
$ tar -xzf ImageMagick-6.6.9-10.tar.gz
$ cd ImageMagick-6.6.9-10
$ ./configure CFLAGS=-O5 CXXFLAGS=-O5 --prefix=/opt --enable-static --with-png --disable-shared

Make sure you have the below in the output