Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
- Best practices
Twelve Go Best Practices
Francesc Campoy Flores Gopher at Google @francesc http://campoy.cat/+
namespace FSharpPanelBuilder | |
open System | |
open System.Collections.Generic | |
open Autodesk.Revit | |
open Autodesk.Revit.UI | |
open Autodesk.Revit.Attributes | |
open Autodesk.Revit.DB | |
open Autodesk.Revit.UI.Selection |
// | |
// Compare TypeFilter versus using an | |
// anonymous method to filter elements. | |
// By Guy Robinson, info@r-e-d.co.nz. | |
// | |
// Copyright (C) 2008 by Jeremy Tammik, | |
// Autodesk Inc. All rights reserved. | |
// | |
// Updated to the Revit 2011 API and added LINQ filtering. | |
// Changed the anonymous method to a lambda expression. |
{ | |
"register_id": "b1e198a9-f019-11e3-a0f5-b8ca3a64f8f4", // register to assign the sale to | |
"customer_id": "06e35f89-3783-11e6-ec7e-13193f7bd2ed", // [optional] customer associated with the sale | |
"user_id": "b1ed6158-f019-11e3-a0f5-b8ca3a64f8f4", // Vend user associated with the sale | |
"sale_date": "2016-05-05 23:35:34", // [optional] by default current time will be assigned | |
"note": "", // [optional] a note to be attached to the sale | |
"status": "CLOSED", // One of: SAVED, CLOSED, ON_ACCOUNT, LAYBY, ON_ACCOUNT_CLOSED, LAYBY_CLOSED | |
"short_code": "mlzs94", // [optional] used for loyalty claiming | |
"invoice_number": "MR-1484-NZ", // [optional] invoice number, if omitted one will be assigned by |
{ | |
"series": [ | |
{ | |
"metric": "zendesk.unassigned", | |
"points": [ | |
[ | |
"2016-05-03T23:55:24.199142866Z", | |
28 | |
] | |
] |
package main | |
import "fmt" | |
func main() { | |
var a int | |
var b int | |
var c *int | |
a = 42 |
using System; | |
using System.Net.Http; | |
namespace VendTest | |
{ | |
class MainClass | |
{ | |
public static void Main(string[] args) | |
{ | |
Client client = new Client(); |
on idle | |
set powerStatus to do shell script "pmset -g ps" | |
tell application "System Preferences" | |
reveal pane id "com.apple.preferences.Bluetooth" | |
#activate | |
tell application "System Events" to tell process "System Preferences" | |
set btCheckBox to checkbox "On" of window 1 | |
if powerStatus contains "Battery Power" then | |
tell btCheckBox |
load_assembly "RevitAPI" | |
load_assembly "RevitAPIUI" | |
include Autodesk::Revit::DB | |
include Autodesk::Revit::UI | |
include Autodesk::Revit::UI::Selection | |
include System::Collections::Generic | |
include System::Collections | |
include System |
This module should include three main elements that will allow for a full integration of Tidio Chat with a website based on typo3.
These elements are: