Skip to content

Instantly share code, notes, and snippets.

View xavi-tristancho's full-sized avatar

Xavier Tristancho Bordoy xavi-tristancho

View GitHub Profile
@serkanserttop
serkanserttop / datasource-tasks-results
Last active July 15, 2017 23:24
Loopback Model Discovery, bug?
//DataSource.prototype.discoverSchemas
//async.parallel(tasks, function (err, results) {
// console.log(results);
//https://github.com/strongloop/loopback-datasource-juggler/blob/master/lib/datasource.js#L1205
[
[
{ owner: 'chosendb',
tableName: 'chosentable',
columnName: 'id'
},
@shadcn
shadcn / gist:de147c42d7b3063ef7bc
Last active December 3, 2025 02:16
Convert a Hex string to UIColor in Swift
// Creates a UIColor from a Hex string.
func colorWithHexString (hex:String) -> UIColor {
var cString:String = hex.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).uppercaseString
if (cString.hasPrefix("#")) {
cString = cString.substringFromIndex(1)
}
if (countElements(cString) != 6) {
return UIColor.grayColor()
2013-09-28 15:54:13.369 iOSFontListTest[3753:60b] Font Family Names (
"Academy Engraved LET",
"Al Nile",
"American Typewriter",
"Apple Color Emoji",
"Apple SD Gothic Neo",
Arial,
"Arial Hebrew",
"Arial Rounded MT Bold",
Avenir,