Skip to content

Instantly share code, notes, and snippets.

using SharpKit.JavaScript;
namespace PhantomJS
{
[JsType(JsMode.Prototype, Export = false, Name = "console")]
public static class Console
{
public static void log(string message) {}
}
/* Styles for the query builder container: query builder + results. */
#queryBuilderContainer {
position: relative;
font-family: "Segoe UI", Helvetica, Verdana;
width: auto;
}
#queryBuilderContainer * {
margin: 0;
padding: 0;
@philbritton
philbritton / crmfieldtype.bas
Created April 1, 2014 00:45
macro to change data type for crm extracts
Sub CrmConvertFields()
'
' CrmConvertFields Macro
'
Dim txt As String
Dim num As Double
For Each Cell In Selection.Cells
txt = Cell.Value
txt = Replace(txt, "$", "")
@philbritton
philbritton / password.js
Created May 31, 2014 19:27
strong password validation form, auto update as you type
var atLeastOneLetter = /.*[a-zA-Z]{1,}.*/;
var atLeastOneNumberOrSpecialChar = /.*[0-9\\\(\)\[\]\{\}\-\+\=\,\?\"_`:@'#*$;^!|~/\.]{1,}.*/;
var atLeastOneSpace = /.*[ ]{1,}.*/;
var specialChars = /(?=.*[><&%]).{1,}/;
var imgPath = 'images/';
var check_IMG = imgPath + 'check16.gif';
var wrong_IMG = imgPath + 'wrong16.gif';
var clear_IMG = imgPath + 'clear16.gif';
var passwordTipPopupId = 'passwordTipPopup';
var pwdTipImagesId = 'pwdTip';
module CapybaraWithPhantomJs
include Capybara
# Create a new PhantomJS session in Capybara
def new_session
# Register PhantomJS (aka poltergeist) as the driver to use
Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app)
end
@philbritton
philbritton / mono.rb
Last active December 19, 2015 05:29 — forked from shtirlic/mono.rb
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class Mono < Formula
url 'http://download.mono-project.com/sources/mono/mono-3.0.6.tar.bz2'
sha1 'e2187f80366fcd65c55a1ab946f8d3b39e81be77'
#url 'http://download.mono-project.com/sources/mono/mono-2.10.9.tar.bz2'
#sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de'
{
"definitions": {
"MedicalSignOrSymptom": {
"title": "Medical Sign or Symptom",
"anyOf": [
{
"$ref": "#/definitions/MedicalEntity"
}
],
"description": "Any indication of the existence of a medical condition or disease.",

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@philbritton
philbritton / 0_reuse_code.js
Created October 15, 2013 17:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console