Progress: [##########>-------------------------------------------------] 16/95 (15.8 %)
⚠️ Compiling of exercises/primitive_types/primitive_types1.rs failed! Please try again. Here's the output:
error: expected identifier, found keyword `if`
--> exercises/primitive_types/primitive_types1.rs:16:5
|
16 | if is_evening {
| ^^ expected identifier, found keyword
error: expected one of `:`, `;`, `=`, `@`, or `|`, found `is_evening`
File name: README.md
Session: 01HZ50EFYD8SQKGYQFJTJZ154T
Share your own terminal sessions, it's free and open source. Click here to learn more.
File name: shebang.md
Session: 01HWE53MJN9GNBSRK5NY7V0JAX
Share your own terminal sessions, it's free and open source. Click here to learn more.
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 node | |
import "@endo/init"; | |
const isFrozen = o => Object.isFrozen(o); | |
const mathCompartment = new Compartment({ Math, print: console.log }); | |
mathCompartment.evaluate(` | |
const result = Math.pow(2, 5); |
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 node | |
const http = require('http'); | |
const url = require('url'); | |
const server = http.createServer((req, res) => { | |
const parsedUrl = url.parse(req.url, true); | |
const queryStringParams = parsedUrl.query; | |
res.writeHead(200, {'Content-Type': 'text/plain'}); |
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
# This is Git's per-user configuration file. | |
# Use this git configuration file to use some handy commands in your day-to-day work | |
[user] | |
name = <YOUR NAME HERE> | |
email = <YOUR EMAIL HERE> | |
[alias] | |
wip = !read -p \"Enter issue number: \" issue && read -p \"What feature are you working on?:\" name && git checkout -b \"wip/bencho/$issue-$name\" | |
ready = !git branch -m \"$(git branch --show-current | sed \"s/wip\\///g\")\" | |
copy = !git branch --show-current | pbcopy | |
alias = !git config --get-regexp alias |
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
const { Integration } = require('@fusebit-int/framework'); | |
const integration = new Integration(); | |
// Koa Router: https://koajs.com/ | |
const router = integration.router; | |
const googleConnectorName = '{{GOOGLE CONNECTOR NAME HERE}}'; | |
const discordConnectorName = '{{DISCORD CONNECTOR NAME HERE}}'; | |
const spreadsheetId = '{{ID OF THE SPREADSHEET}}' | |
const discordChannelId = '{{DISCORD CHANNEL ID TO CREATE THE THREADS}}' |
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
integration.event.on('/:componentName/webhook/issue_comment.created', async (ctx) => { | |
const { | |
data: { comment, repository, issue, installation }, | |
} = ctx.req.body.data; | |
const commentText = comment.body; | |
const isLinearCommand = commentText.match(/^\/linear/g).length > 0; | |
if (isLinearCommand) { | |
const linearClient = await integration.service.getSdk(ctx, 'popular-js-linear', ctx.req.body.installIds[0]); | |
const [titlePart, description] = commentText.split('\n'); | |
const title = titlePart.replace('/linear', ''); |
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
module.exports = (url) => { | |
console.log(url.replace(/ /g, '').replace(/\n│/g,'')); | |
}; |
NewerOlder