Skip to content

Instantly share code, notes, and snippets.

View utenma's full-sized avatar
🎭

saŭlo utenma

🎭
View GitHub Profile
@Akjir
Akjir / HexGrid.scala
Created June 6, 2013 13:33
Creates a simple hex grid using JavaFX and Scala.
package ca.akjir.hex
import javafx.application.Application
import javafx.event.EventHandler
import javafx.scene.Group
import javafx.scene.Scene
import javafx.scene.canvas.Canvas
import javafx.scene.canvas.GraphicsContext
import javafx.scene.input.MouseEvent
import javafx.scene.paint.Color
@arruw
arruw / ApiController.cs
Last active March 24, 2021 22:05
ASP.NET Core - Generic web API controller with generic repository pattern (created on, modified on, soft delete) ... view demo https://github.com/matjazmav/generic-api
[Authorize]
[Route("api/[controller]")]
public abstract class ApiController<T> : Controller where T : class, IEntity
{
private IApplicationRepository<T> _repository;
public ApiController(IApplicationRepository<T> repository)
{
_repository = repository;
}

Recientemente StarUML se actualizó de 2.0 a 3.0. El método de crack original, la forma de modificar la función de verificación de licencia no se puede usar. La ubicación de instalación ha cambiado y se ha encontrado el archivo LicenseManagerDomain.js. ¿Qué debería hacer? El viejo conductor les dijo a todos que resolvieran el problema.

StarUML está escrito en nodejs. Específicamente, está escrito en el marco frontal de Electron. Todo el código fuente de starUML en la nueva versión viene empaquetado por la herramienta asar.

Ingresar al directorio (Windows)

C:\Program Files\StarUML\resources

@oupirum
oupirum / mobx-cheatsheet.js
Created April 17, 2019 19:02
MobX cheatsheet
// MobX - state manager with functional reactive programming paradigm.
// version 5.8.0
// The philosophy behind MobX is very simple:
// Anything that can be derived from the application state,
// should be derived. Automatically.
// Events
// ↓
// [ Actions ] ← ----- ← --•
@hungneox
hungneox / WIN10.MD
Last active June 25, 2024 14:17
How Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal

Most new PCs don't come with DVD drives anymore. So it can be a pain to install Windows on a new computer.

Luckily, Microsoft makes a tool that you can use to install Windows from a USB storage drive (or "thumbdrive" as they are often called).

But what if you don't have a second PC for setting up that USB storage drive in the first place?

In this tutorial we'll show you how you can set this up from a Mac.

Step 1: Download the Windows 10 ISO file

You can download the ISO file straight from Windows. That's right - everything we're going to do here is 100% legal and sanctioned by Microsoft.

@harrybiddle
harrybiddle / test.yml
Created September 5, 2020 08:10
Skip GitHub Actions for Draft PRs
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
jobs:
build:
if: github.event.pull_request.draft == false
@bmitc
bmitc / GLFWWindowTest.fs
Last active July 11, 2024 02:54
GLFW window with SkiaSharp rendering in F#
(*
The following creates a GLFW window and then draws to the window's OpenGL context using SkiaSharp,
which are .NET bindings for Skia. The bindings shown that look like `glfw<name>` are F# bindings to
GLFW and directly match the GLFW function names. So this example could even be used as a blueprint
for using GLFW and Skia together in other languages.
*)
open System
open SkiaSharp