const tasks = await dv.pages('#task').where(t => t.task_status != "Dropped" && t.backlog != null && dv.io.normalize(t.backlog) == dv.current().file.path);
let completedTasks = tasks.where(t => t.task_status == "Done");
let donePercentage = parseInt((completedTasks.length / tasks.length) * 100);
if (tasks.length == 0) donePercentage = 0;
dv.span('Total: ' + completedTasks.length + '/' + tasks.length);
dv.span('<br><br>')
dv.span("<progress value='" + donePercentage + "' max='100'></progress>" + " " + donePercentage + "%")
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
StreamSocket _streamSocket; | |
void OnTriggeredConnectionStateChanged(object sender, TriggeredConnectionStateChangedEventArgs args) | |
{ | |
switch (args.State) | |
{ | |
case TriggeredConnectState.Listening: | |
// Conectando como ouvinte | |
break; |
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
# Dynamic Unity versions alias | |
for file in /Applications/Unity*/ ; do | |
if [[ -d "$file" && ! -L "$file" ]]; then | |
base_file=`basename $file` | |
base_file=${base_file:5} | |
# echo "$base_file is a directory"; | |
alias open-unity-${base_file}="${file}/Unity${base_file}.app/Contents/MacOS/Unity -projectPath \$PWD" | |
fi; | |
done |