omarchy pkg aur add jamesdsp-pipewire-binThat is the prebuilt PipeWire package (no compile). jamesdsp is the source AUR package and takes much longer to build. Don't install both; they conflict.
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| syncFolders() { | |
| printf "%s" "Target Folder: " | |
| read localFolder | |
| printf "%s" "Destination Folder: " | |
| read remoteFolder | |
| printf "%s" "Excluded Folders (separated by space): " | |
| read excludedFolders | |
| array=($(echo "$excludedFolders" | tr ' ' '\n')) | |
| # if [ -z "${excludedFolders[@]}" ]; then |
| git branch -m master main | |
| git fetch origin | |
| git branch -u origin/main main | |
| git remote set-head origin -a |
| # Originally created by Lin JungHsuan: https://medium.com/@linjunghsuan/create-a-simple-image-classifier-using-tensorflow-a7061635984a | |
| import tensorflow as tf, sys | |
| image_path = sys.argv[1] | |
| # Read in the image_data | |
| image_data = tf.gfile.FastGFile(image_path, 'rb').read() | |
| # Loads label file, strips off carriage return | |
| label_lines = [line.rstrip() for line |
| //********************************************************* | |
| // Quick and dirty way to detect event loop blocking | |
| //********************************************************* | |
| var lastLoop = Date.now(); | |
| function monitorEventLoop() { | |
| var time = Date.now(); | |
| if (time - lastLoop > 1000) console.error('Event loop blocked ' + (time - lastLoop)); | |
| lastLoop = time; | |
| setTimeout(monitorEventLoop, 200); |
| import { Injectable } from '@angular/core'; | |
| import { Subject, Subscription, Observable } from 'rxjs/Rx'; | |
| @Injectable() | |
| export class EventBusService { | |
| subject = new Subject<any>(); | |
| constructor() { } |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>GistRun</title> | |
| <!--<link rel="stylesheet" href="styles.css">--> | |
| </head> | |
| <body> | |
| <h1>Hello world!</h1> | |
| <!--<script src="script.js"></script>--> |
| <html ng-app="app"> | |
| <body> | |
| <div ng-controller="CustomersController"> | |
| Name: <input type="text" ng-model="searchText" /> {{ searchText }} | |
| <br /> | |
| <ul> | |
| <li ng-repeat="person in people | filter:searchText | orderBy:'name' track by person.id"> | |
| {{ ::person.name }} - {{ ::person.city }} | |
| </li> |
| ##Dust helpers not loading | |
| Removed Dust.js functionality but leaving this in for future reference. | |
| Inside the dustjs-helpers folder in your node_modules, you will notice dustjs-linkedin is version 2.3.5, | |
| while in the node_modules folder of your app there is another version of dustjs-linkedin which is 2.4.0. | |
| I deleted the older version and then everything works well. | |
| https://github.com/krakenjs/kraken-js/issues/236 |