This file contains hidden or 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
| PdfRenderer(fd).use {renderer -> | |
| val count = renderer.pageCount | |
| val views = getPageViews(count) | |
| views.forEachIndexed {i, view -> | |
| renderer.openPage(i).use {page -> | |
| val bitmap = Bitmap.createBitmap( | |
| view.width, | |
| view.height, | |
| Bitmap.Config.ARGB_8888) | |
| page.render( |
This file contains hidden or 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
| diff --git a/browser/src/Renderer/CanvasRenderer.ts b/browser/src/Renderer/CanvasRenderer.ts | |
| index 3c95685e..1ddc0b5c 100644 | |
| --- a/browser/src/Renderer/CanvasRenderer.ts | |
| +++ b/browser/src/Renderer/CanvasRenderer.ts | |
| @@ -296,25 +296,25 @@ export class CanvasRenderer implements INeovimRenderer { | |
| const delta = boundsStartX - normalizedBoundsStartX | |
| const normalizedBoundsWidth = Math.ceil(boundsWidth + delta) | |
| - const normalizedBoundsY = Math.floor(boundsY) | |
| - const deltaY = boundsY - normalizedBoundsY |
This file contains hidden or 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
| divert(`-1') | |
| define(`forloop', `pushdef(`$1', `$2')_forloop($@)popdef(`$1')') | |
| define(`_forloop', | |
| `$4`'ifelse($1, `$3', `', `define(`$1', incr($1))$0($@)')') | |
| divert`'dnl | |
| define(`lastindex', `60')dnl | |
| shader_type spatial; | |
| render_mode blend_mul,depth_draw_opaque,cull_disabled,diffuse_burley,specular_schlick_ggx,world_vertex_coords; |
This file contains hidden or 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
| Result function1(Closure closure, Arguments arguments) { | |
| Value print = get_closure_value(closure, 0); | |
| pos("examples1.simp", 9); | |
| Value i = make_number(99); | |
| loop1: | |
| pos("examples1.simp", 10); | |
| Value aux1 = make_number(0); | |
| Value aux2 = greater_than(i, aux1); | |
| if (!is_true(aux2)) goto loop1_end; |
This file contains hidden or 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
| Usage: hie.exe [--version] [--help] [--numeric-version] [--compiler] | |
| [-d|--debug] [-l|--logfile LOGFILE] [--lsp] | |
| [-r|--project-root PROJECTROOT] [--vomit] [--ekg] | |
| [-p|--port PORT] | |
| [Info - 16:11:30] Connection to server got closed. Server will restart. | |
| Invalid argument `' | |
| Usage: hie.exe [--version] [--help] [--numeric-version] [--compiler] | |
| [-d|--debug] [-l|--logfile LOGFILE] [--lsp] | |
| [-r|--project-root PROJECTROOT] [--vomit] [--ekg] |
This file contains hidden or 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
| @powershell -executionpolicy bypass -file "%~dp0ps-wsl-wrapper.ps1" %~n0 %* |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <style> | |
| #custin | |
| { | |
| width: 400px; | |
| } | |
| </style> | |
| </head> |
This file contains hidden or 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
| private string DecodeSpeech() | |
| { | |
| JContainer speechRequest = new JObject( | |
| new JProperty("config", new JObject( | |
| new JProperty("languageCode", new JValue("fi")) | |
| )), | |
| new JProperty("audio", new JObject( | |
| new JProperty("content", base64Audio.text) | |
| )) |
This file contains hidden or 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
| private Device deviceFromEntity(DeviceEntity entity) { | |
| Device result = new Device(); | |
| result.setId(entity.getId()); | |
| result.setName(entity.getName()); | |
| return result; | |
| } | |
| @Override | |
| public Response listDevices( |
This file contains hidden or 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
| makeList :: IORef Env -> [Expression] -> IO Value | |
| makeList env elemExprs = do | |
| elems <- traverse (eval env) elemExprs | |
| ListValue <$> newIORef elems | |
| makeFunction :: IORef Env -> [String] -> Block -> IO Value | |
| makeFunction _ _ _ = pure . FunctionValue . const $ pure NullValue | |
| applyFunction :: IORef Env -> Expression -> [Expression] -> IO Value | |
| applyFunction env f args = do |
NewerOlder