Skip to content

Instantly share code, notes, and snippets.

View mcvendrell's full-sized avatar
🎓
Always learning

Manuel Conde Vendrell mcvendrell

🎓
Always learning
View GitHub Profile
@mcvendrell
mcvendrell / locale.es.js
Created August 26, 2020 15:56
Spanish translation file for ag Grid
export const localeEs = {
selectAll: 'Seleccionar todo',
selectAllSearchResults: 'Seleccionar todos los resultados de búsqueda',
searchOoo: 'Buscar...',
blanks: 'Vacíos',
noMatches: 'Sin coincidencias',
filterOoo: 'Filtro...',
equals: 'Igual',
notEqual: 'Diferente',
@mcvendrell
mcvendrell / My.ps1
Created September 27, 2016 14:55
Some PowerShell configurations for Appcelerator Titanium CLI + Atom on Windows
# See https://github.com/m1ga/titanium_with_atom on the Windows part
# execute as tinfo, e.g.
Function appcInfo {appc ti info}
New-Alias tinfo appcInfo
Function tiBuildAndroid {ti build -p android -T device --skip-js-minify}
New-Alias tib tiBuildAndroid
Function tiBuildAndroidLive {ti build -p android -T device --skip-js-minify --liveview}
@mcvendrell
mcvendrell / chat.js
Created September 25, 2015 11:55
Chat with Alloy models failing test
exports.definition = {
config: {
columns: {
"content": "String",
"date": "String",
"author": "String"
},
adapter: {
type: "properties",
collection_name: "chat"
@mcvendrell
mcvendrell / index.js
Created January 12, 2015 08:17
Titanium: How to re-use the launch image in the app (TiDev.io): Alloy style
// Animated start. Comments for code here: http://www.tidev.io/2015/01/06/how-to-re-use-the-launch-image-in-the-app
var img = Ti.UI.createImageView({
// Get the launch image
image: (function getImage() {
if (OS_IOS) {
// Working around orientation-bug
if (Ti.Platform.osname === 'ipad' || Math.max(Ti.Platform.displayCaps.platformWidth, Ti.Platform.displayCaps.platformHeight) === 736) {
return 'Default-' + (Ti.Gesture.isPortrait() ? 'Portrait' : 'Landscape') + '.png';
} else {
return 'Default.png';