Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin
noeticpenguin / app_delegate.rb
Created October 10, 2013 19:00
app_delegate.rb
class AppDelegate
attr_accessor :window, :initialLoginSuccessBlock, :initialLoginFailureBlock
# def OAuthLoginDomain()
# # You can manually override and force your app to use
# # a sandbox by changing this to test.salesforce.com
# "login.salesforce.com"
# end
@noeticpenguin
noeticpenguin / snippet.txt
Created October 10, 2013 19:45
backtrace
Process 83868 stopped
* thread #1: tid = 0x50b623, 0x0089ae40 Dreamforce Demo App`rb_exc_raise, queue = 'com.apple.main-thread, stop reason = breakpoint 1.1
frame #0: 0x0089ae40 Dreamforce Demo App`rb_exc_raise
Dreamforce Demo App`rb_exc_raise:
-> 0x89ae40: pushl %ebp
0x89ae41: movl %esp, %ebp
0x89ae43: subl $8, %esp
0x89ae46: movl 8(%ebp), %eax
(lldb) bt
* thread #1: tid = 0x50b623, 0x0089ae40 Dreamforce Demo App`rb_exc_raise, queue = 'com.apple.main-thread, stop reason = breakpoint 1.1
class RootViewController < UITableViewController
attr_accessor :dataRows
def didReceiveMemoryWarning
super
end
def dealloc
@dataRows = nil
{
"A" => [],
"B" => [
[0] {
"attributes" => {
"url" => "/services/data/v23.0/sobjects/Contact/003i000000MzFmYAAV",
"type" => "Contact"
},
"LastName" => "Barr",
"FirstName" => "Tim",
@noeticpenguin
noeticpenguin / RestClient.java
Created October 21, 2013 13:05
A basic Rest Client for Salesforce's Apex
Public with sharing virtual class RestClient {
Public class RestClientException extends Exception {}
/*
* class variable creation - DO NOT EDIT
*/
Public Map<String,String> headers;
Public String url;
Public String method;
/*!
angular-xeditable - 0.1.7
Edit-in-place for angular.js
Build date: 2013-10-26
*/
/*
angular-xeditable module
*/
angular.module('xeditable', [])
.value('editableOptions', {
<div class="row-fluid"><!-- ngInclude: undefined --><ng-include src="templateUrl" class="ng-scope">
<script src="/jslibrary/1383366200000/sfdc/JiffyStubs.js" class="ng-scope"></script>
<div ng-controller="pp_Package_tabCtrl" class="ng-scope">
<div class="tabbable ng-isolate-scope ng-scope tabs-right" ng-class="{'tabs-right': direction == 'right', 'tabs-left': direction == 'left', 'tabs-below': direction == 'below'}" direction="'right'" type="'tabs'" vertical="true">
<ul class="nav nav-tabs nav-stacked" ng-class="{'nav-stacked': vertical}" tabset-titles="tabsAbove">
<!-- ngRepeat: tab in tabs --><li ng-class="{active: active, disabled: disabled}" active="tab.active" disabled="disabled" heading="Awesome Package" ng-repeat="tab in tabs" class="ng-isolate-scope ng-scope active">
<a ng-click="select()" tab-heading-transclude="" class="ng-binding">Awesome Package</a>
[Error] Error: 'undefined' is not an object (evaluating 'self.scope.$form.$data[$attrs.eName] = newVal')
https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/xeditable.js:302:33
$digest@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:10569:29
$apply@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:10802:31
done@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:6937:51
completeRequest@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:7102:15
onreadystatechange@https://c.cs13.visual.force.com/resource/1384277518000/ccpp/ccpp/js/angular.js:7058:26
(anonymous function) (angular.js, line 8296)
(anonymous function) (angular.js, line 5967)
$digest (angular.js, line 10581)
@noeticpenguin
noeticpenguin / moduleAndBind.js
Created December 2, 2013 23:31
directive template
angular./**
* app Module
*
* skeleton app module for skeleton directive.
*/
var app = angular.module('app', [])
.directive('ng', ['', function(){
// Runs during compile
return {
name: 'modelAndBind',
@noeticpenguin
noeticpenguin / autolink.js
Created December 13, 2013 18:01
example filter with trust as html for angular 1.2+