looking for book recommendations. please comment with books and what level (beginner, advanced, etc) thnx babes
Route::get('export', function() { | |
$posts = Post::where('status', '=', 'published')->get(); | |
foreach ($posts as $post) { | |
$content = <<<EOD | |
--- | |
layout: post | |
title: "$post->title" | |
date: $post->created | |
categories: blog |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Building a router</title> | |
<script> | |
// Put John's template engine code here... | |
(function () { | |
// A hash to store our routes: |
var firmata = require('firmata'); | |
var repl = require('repl'); | |
var board = new firmata.Board('/dev/ttyAMA0',function(err){ | |
//arduino is ready to communicate | |
if (err) { | |
console.log("err:" + err); | |
return; | |
} | |
console.log("Firmata Firing LEDs"); |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
function Slot({ children, slot }) { | |
let slottedChild = null; // Default to null since react can render null if a slot isn't found | |
// Iterate over children to find the slot needed | |
React.children.forEach(children, (child) => { | |
if (!React.isValidElement(child)) { // Check that it is a valid react element. | |
return; // Return since we can't do anything with a child without props. | |
} |
var five = require("johnny-five"); | |
var keypress = require("keypress"); | |
var options = { | |
// TODO: YOU SHOULD PUT THIS IN HERE | |
// TODO: we can make cute names for this? | |
'port' : '/dev/tty.GoldsamBot-SPPDev' | |
} | |
var board = new five.Board(options); |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
import glob from 'fast-glob' | |
import { build } from 'esbuild' | |
import { Project } from 'ts-morph' | |
const project = new Project({ | |
compilerOptions: { | |
outDir: 'dist', | |
emitDeclarationOnly: true, | |
}, | |
tsConfigFilePath: './tsconfig.json', |
This guide will help you get set up with Viam with Python. It assumes that you are starting from scratch, and will walk you through setting up a fresh environment and installing the necessary requirements.
The first step is to create a directory to house your project. For this guide, we will be using the directory name viam-python
:
mkdir viam-python