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
using System.Linq; | |
namespace ClassLibrary2 | |
{ | |
using System; | |
using System.Reflection; | |
using NUnit.Core; | |
using NUnit.Core.Extensibility; | |
using NUnit.Framework; |
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
#!/usr/bin/env bash | |
# Usage: {script} [ OPTIONS ] TARGET VERSION | |
# | |
# TARGET Default target is "/usr/local". | |
# VERSION If not defined tries to get the build into the Sublime Text 2 website. | |
# | |
# OPTIONS | |
# | |
# -h, --help Displays this help message. | |
# |
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
# usage | |
# curl -s https://gist.github.com/ptomasroos/8861534/raw/ | sudo sh | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install linux-headers-generic build-essential | |
# install chrome | |
cd /tmp | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb |
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
# usage curl -s https://gist.github.com/ptomasroos/8914609/raw/ | sudo sh | |
# !! make sure you have the vmware tools mounted all ready through the UI | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install linux-headers-generic build-essential | |
cd /media/VMware\ Tools/ | |
sudo cp VM*.tar.gz /tmp | |
cd /tmp |
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
// in a controller | |
// you can either update the collection directly or send | |
// a message in the LAZO.app dispatcher | |
// (you can use a controller dispatcher if you want to be more granular) | |
var socket = io(); | |
var self = this; | |
var notifications = this.ctx.collections.notifications; | |
// three different approaches to re-rendering a badge count | |
socket.on('notification', function (msg) { |
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
// backs user model | |
define(['lazoSyncher'], function (LazoSyncher) { | |
return LazoSyncher.extend({ | |
authenticate: function (credentials, options) { | |
// authenticate user using credentials | |
// you can call options.success or options.error | |
// update the user model, auth token, etc. | |
} |
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
define(['lazoApp'], function (App) { | |
'use strict; | |
return App.extend({ | |
initialize: function (callback) { | |
var html = '<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]--><html lang="en">'; | |
LAZO.app.setHtmlTag(html); | |
LAZO.app.setBodyClass('some-class another-class'); |
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
// base controller | |
define(['lazoCtl'], function (Ctl) { | |
'use strict'; | |
return Ctl.extend({ | |
index: function (options) { | |
this.loadModel('session', { | |
success: function (model) { |
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
https://www.websequencediagrams.com/ | |
title First navigation | |
opt server response | |
Browser->Express: GET /url | |
Express->Context: executeAction(navigate({ path: /url })) | |
Context->NavigateAction: Invoke | |
NavigateAction->ModelStores: Dispatch 'CHANGE_ROUTE_SUCCESS' |
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
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon"> |
OlderNewer