- [Technology is about doing more with less][1].
- Ask a non-coder
This file contains hidden or 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
ff |
This file contains hidden or 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
{ | |
"font_size": 11, | |
"ignored_packages": | |
[ | |
"Markdown", | |
"Vintage" | |
], | |
"remember_open_files": false, | |
"caret_style": "smooth", | |
"highlight_line": true, |
This file contains hidden or 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
/* limit search to pages only - works as of WordPress 3.9.1 */ | |
function mySearchFilter($query) { | |
if ($query->is_search) { | |
$query->set('post_type', array('page', 'tribe-events')); | |
}; | |
return $query; | |
}; | |
add_filter('pre_get_posts','mySearchFilter'); |
This file contains hidden or 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
/* | |
* ngForce - a visualForce remoting based Angular.js service for developing | |
* Angular apps within Visualforce. | |
* | |
* Copyright (c)2013, Kevin Pooorman. | |
* License: MIT | |
* | |
* Vfr provides access to visualforce Remoting methods from any given class | |
* in the Org that are @remoteAction annotated. | |
* |
This file contains hidden or 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
query: send.call(this, 'ngForceController.query', { | |
escape: false, | |
timeout: 30000 | |
}, false); | |
}, | |
/* | |
send.call(...) will execute the send function and | |
"returns a function that, when called, invokes the js remoting method specified in the call." |
This file contains hidden or 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
$get: function($q, $rootScope) { | |
function send(remoteAction, options, nullok) { | |
var namespace, controller, method; | |
var Manager = Visualforce.remoting.Manager; | |
var parts = remoteAction.split('.'); | |
var instance = this; | |
if (options && typeof options !== 'object') { | |
throw new Error('Options must be an object'); | |
} |
This file contains hidden or 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
(function() { | |
var foo = window["bar"]; | |
if(foo) { | |
setTimeout(function() { | |
alert("!"); | |
}); | |
} | |
})(); |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace MyApp | |
{ | |
public static class MimeMapping | |
{ | |
public static string GetContentType(string SourceFileName) |
This file contains hidden or 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 SimpleExamples = | |
open System | |
type Customer(firstName: string) = | |
member this.FirstName = firstName |
OlderNewer