start new:
tmux
start new with session name:
tmux new -s myname
/* | |
See dev dependencies https://gist.github.com/isimmons/8927890 | |
Compiles sass to compressed css with autoprefixing | |
Compiles coffee to javascript | |
Livereloads on changes to coffee, sass, and blade templates | |
Runs PHPUnit tests | |
Watches sass, coffee, blade, and phpunit | |
Default tasks sass, coffee, phpunit, watch | |
*/ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
function WebmailViewModel() { | |
// Data | |
var self = this; | |
self.folders = ['Inbox', 'Archive', 'Sent', 'Spamh']; | |
self.chosenFolderId = ko.observable(); | |
self.chosenFolderData = ko.observable(); | |
self.chosenMailData = ko.observable(); | |
// Behaviours | |
self.goToFolder = function(folder) { location.hash = folder }; |
<?php | |
class Auth extends Laravel\Auth {} | |
/** | |
* @method static add(string $name, string $source, array $dependencies = array(), array $attributes = array()) | |
* @method static string styles() | |
* @method static string scripts() | |
*/ | |
class Asset extends Laravel\Asset {} | |
class Autoloader extends Laravel\Autoloader {} | |
class Bundle extends Laravel\Bundle {} |
<div style="display:none" id="amap-container"> | |
<h3 class="box-header">Map</h3> | |
<div style="height: 400px; margin-top: 10px;" id="myMap"> | |
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=KEY"></script> | |
<script type="text/javascript"> | |
jQuery(document).ready(function () { | |
var s1 = "LONG"; | |
var s2 = "LAT"; |
#coding: utf-8 | |
from bottle import route, error, post, get, run, static_file, abort, redirect, response, request, template | |
@route('/') | |
@route('/index.html') | |
def index(): | |
return '<a href="/hello">Go to Hello World page</a>' | |
@route('/hello') | |
def hello(): |
Severity Code Description Project File Line Suppression State | |
Error The command ""C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\Unity\Tools\AssemblyConverter.exe" -platform=uap -lock="C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\VuforiaHololensExample\project.lock.json" -bits=32 -configuration=Release -removeDebuggableAttribute=False -path="." -path="..\Players\UAP\x86\Release" "C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\VuforiaHololensExample\Assembly-CSharp.dll" "C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\VuforiaHololensExample\Assembly-CSharp-firstpass.dll" "C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\VuforiaHololensExample\UnityEngine.dll" "C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\VuforiaHololensExample\UnityEngine.UI.dll" "C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\VuforiaHololensExample\UnityEngine.HoloLens.dll" "C:\Users\brian\Documents\Projects\VuforiaHololensExample\App\VuforiaHo |
public async Task Read() | |
{ | |
DataReader reader = new DataReader(socket.InputStream); | |
while (true) | |
{ | |
if (ActionManager.GetCurrentState() == ActionManager.AppState.DISCONNECTING) | |
{ | |
ActionManager.SetCurrentState(ActionManager.AppState.DISCONNECTED_CONTROL); | |
break; |
import time | |
class RangeSensor: | |
def __init__(self): | |
pass | |
def make_generator(self): | |
t_end = time.time() + 0.1 | |
# tell sensor to start measurement |