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
// This sqlite3_exec limits the database to 50 DB pages (about 1.5Kb each) | |
// Huge memory win on iPhone. | |
if(sqlite3_exec(myDatabsae, "PRAGMA CACHE_SIZE=50", NULL, NULL, NULL) != SQLITE_OK) | |
NSLog(@"Couldn't set cache size: %s", sqlite3_errmsg([self.database sql])); |
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
export PATH=$PATH:~/.cabal/bin:~/bin | |
export EDITOR="/usr/bin/mate -w" | |
alias ll='ls -l' | |
alias ..='cd ..' | |
####### | |
# GIT # | |
####### |
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
NSURL *url = [NSURL URLWithString:BASE_URL]; | |
[ASIHTTPRequest removeCredentialsForHost:[url host] port:[[url port] intValue] protocol:[url scheme] realm:@"Web Password"]; |
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
{ | |
"tour": { | |
"title": "New tour uploading test", | |
"description": "Test Description", | |
"tags": "Test ", | |
"transport_type": "0", | |
"published": "true", | |
"tracks_attributes": [{ | |
"position": "1", | |
"title": "Stop 1", |
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
// | |
// KBNetworkActivityIndicator.h | |
// Kobov3 | |
// | |
// Created by Jim Dovey on 10-03-21. | |
// Copyright 2010 Kobo Inc. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
if ENV['SL_RUN_UNIT_TESTS'] then | |
launcher_path = File.join(ENV['SRCROOT'], "../../bin", "ios-sim") | |
test_bundle_path= File.join(ENV['BUILT_PRODUCTS_DIR'], "#{ENV['PRODUCT_NAME']}.#{ENV['WRAPPER_EXTENSION']}") | |
environment = { | |
'DYLD_INSERT_LIBRARIES' => "/../../Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection", | |
'XCInjectBundle' => test_bundle_path, | |
'XCInjectBundleInto' => ENV["TEST_HOST"] | |
} |
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
[@bs.config {jsx: 3}]; | |
type route = | |
| Home | |
| More; | |
let mapPathToRoute = (path: list(string)) => | |
switch (path) { | |
| [] => Home | |
| ["more"] => More |
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
module MemCache = { | |
type t; | |
[@bs.deriving abstract] | |
type config = {initialState: Js.Json.t}; | |
type conf = Js.Json.t; | |
[@bs.module "graphql-hooks-memcache"] | |
external _createMemCache: config => t = "default"; |
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
type css = {. "about": string}; | |
[@bs.module] external css: css = "./about.css"; | |
[@react.component] | |
let make = (~onServer) => { | |
<div | |
className={ | |
css##about; | |
}> | |
<p> {React.string("This is the about page.")} </p> |
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
info building @opam/ocamlfind@opam:1.8.1@0e6469e7 | |
error: build failed with exit code: 1 | |
build log: | |
# esy-build-package: building: @opam/ocamlfind@opam:1.8.1 | |
# esy-build-package: pwd: /Users/anthonymittaz/.esy/3___________________________________________________________/b/opam__s__ocamlfind-opam__c__1.8.1-29b79927 | |
# esy-build-package: running: './configure' '-bindir' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/bin' '-sitelib' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/lib' '-mandir' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/man' '-config' '/Users/anthonymittaz/.esy/3___________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-29b79927/lib/findlib.conf' '-no-custom' | |
Welcome to findlib version 1 |
OlderNewer