Skip to content

Instantly share code, notes, and snippets.

View jaquiel's full-sized avatar
🏠
Working from home

Jaquiel Paim jaquiel

🏠
Working from home
View GitHub Profile
@jaquiel
jaquiel / c#-to-rust.md
Created March 3, 2024 20:23 — forked from carols10cents/c#-to-rust.md
C# to Rust Cheat Sheet

Thanks to @seejee for making this for me!!!

C# to Rust Cheat Sheet

The goal of this is to have an easily-scannable reference for the most common syntax idioms in C# and Rust so that programmers most comfortable with C# can quickly get through the syntax differences and feel like they could read and write basic Rust programs.

What do you think? Does this meet its goal? If not, why not?

Variables

@jaquiel
jaquiel / Email Server (Windows Only).md
Created April 9, 2022 14:34 — forked from raelgc/Email Server (Windows Only).md
Setup a Local Only Email Server (Windows Only)
@jaquiel
jaquiel / gist:0e55706e3f4519d032724ba352951754
Created August 13, 2020 18:34 — forked from oderwat/gist:9158840
GoLang HTTP PUT / DELETE (just copied from somewhere else!)
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
)
const (
require 'rest-client'
require 'json'
url = 'https://api.github.com/search/repositories?'
q = 'jaquiel'
language = 'typescript'
resp = RestClient.get "#{url}q=#{q}&language=#{language}"
puts JSON.parse(resp.body)#["items"][0]["description"]
/**
* Welcome to Deno with JavaScript
*/
const hello = "Hello there..."
console.log(hello)
console.log("Welcome to Deno 🦕");
/**
* Welcome to Deno with TypeScript
*/
const hello: string = "Hello Deno..."
console.log(hello)
console.log("Welcome to Deno 🦕");
@jaquiel
jaquiel / node-folder-structure-options.md
Created March 5, 2020 22:52 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
@jaquiel
jaquiel / routing.js
Last active March 4, 2020 21:36
Node.js sever examples with express.js framework
/**
* Node.js server
* with express.js framework
* and routing
*/
const express = require('express')
const app = express()
app.use(express.json())