Skip to content

Instantly share code, notes, and snippets.

@SPorwal
SPorwal / parse.js
Created September 28, 2015 04:26 — forked from stephenfeather/parse.js
Quick library for using the Parse REST API within Appcelerator's Titanium. Building it out as I need different pieces of the API.
// Copyright Stephen Feather and other contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//

Fixing npm On Mac OS X for Homebrew Users

If you just want to fix the issue quickly, scroll down to the "solution" section below.

Explanation of the issue

If you're a Homebrew user and you installed node via Homebrew, there is a major philosophical issue with the way Homebrew and NPM work together. If you install node with Homebrew and then try to do npm update npm -g, you may see an error like this:

$ npm update npm -g
@SPorwal
SPorwal / designer.html
Last active August 29, 2015 14:19
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@SPorwal
SPorwal / app.js
Last active August 29, 2015 14:11 — forked from MotiurRahman/app.js
/*Here has given the sample code to use search functionality of listView. Ti SDK version 3.2.0 and later
version you can add search capabilities to your list to filter or find items.You can either use ListView's
searchView property to add a search bar to your list or you can pass your search query to ListView's
searchText property.
To use the searchView property, create a Titanium.UI.SearchBar object and set it to the ListView's
searchView property.Then,you need to add the searchableText property to each item in your list when
you create it to assign it the text to match when searching.You can optionally set the caseInsensitiveSearch
property to false to enable case sensitive searches and set the keepSectionsInSearch
to true to preserve section labels while searching.