View env_dyn.patch
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
diff --git a/fish-rust/src/env_dispatch.rs b/fish-rust/src/env_dispatch.rs | |
index 04a0a26be..416ed33f6 100644 | |
--- a/fish-rust/src/env_dispatch.rs | |
+++ b/fish-rust/src/env_dispatch.rs | |
@@ -97,9 +97,8 @@ struct VarDispatchTable { | |
// TODO: Delete this after input_common is ported (and pass the input_function function directly). | |
fn update_wait_on_escape_ms(vars: &EnvStack) { | |
- let fish_escape_delay_ms = vars.get_unless_empty(L!("fish_escape_delay_ms")); | |
- let var = crate::env::environment::env_var_to_ffi(fish_escape_delay_ms); |
View error-reporter.js
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
// JavaScript error reporting library. | |
// Copyright (c) Mahmoud Al-Qudsi, NeoSmart Technologies. All rights reserved. | |
// Licensed under the MIT License. This copyright notice should be preserved. | |
function addScript(url) { | |
document.write("<script type='text/javascript' src='" + url + "'><\/script>"); | |
} | |
if (typeof (JSON) === "undefined") { | |
addScript("/EasyRE/lib/polyfill/json3/json3.min.js"); |
View pthread_unsafe_unlock.c
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
#include <pthread.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
static pthread_mutex_t mutex; | |
static void* thread1_entry(void * _arg) { | |
int *result = malloc(sizeof(int)); |
View bisect_vim.sh
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
#!/bin/sh | |
# set -x | |
# vim is really hard to run portably; I can't seem to get `set rtp=./runtime/` | |
# to actually work, so we build it with a prefix pointing to $PWD and then | |
# symlink `share/vim/` so it points to the files we need. | |
if mkdir share 2>&1 >/dev/null; then | |
ln -s $(pwd) share/vim | |
fi |
View github_release_updater.fish
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 fish | |
# Declare some constants to be used later | |
set -g filename omnisharp-win-x64.zip | |
set -g base_url https://github.com/OmniSharp/omnisharp-roslyn | |
set -g release_file current_release.txt | |
if ! type -q wsl.exe | |
# Running on actual Linux | |
set filename omnisharp-linux-x64.tar.gz | |
end |
View UWP Modal Dialog.cs
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
private async void Settings_Click(object sender, PointerRoutedEventArgs e) | |
{ | |
var mainViewId = ApplicationView.GetForCurrentView().Id; | |
CoreApplicationView newView = CoreApplication.CreateNewView(); | |
int newViewId = 0; | |
var popupClosed = new TaskCompletionSource<bool>(); | |
Window settingsWindow = null; | |
var mainWindow = Window.Current; |
View WebView2Extensions.cs
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
// Copyright (c) Mahmoud Al-Qudsi, NeoSmart Technoogies. All rights reserved. | |
// Licensed under the MIT License. | |
namespace NeoSmart.WebExtensions | |
{ | |
static class WebView2Extensions | |
{ | |
private static readonly ILogger Logger = Serilog.Log.Logger; | |
public static void Navigate(this WebView2 webview, Uri url) | |
{ |
View JsonRequest.cs
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
using System; | |
using Serilog; | |
using System.IO; | |
using System.Threading.Tasks; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using System.Buffers; | |
using System.Net; | |
namespace MessageClient |
View StreamSequence.cs
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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using System.Buffers; | |
namespace MessageClient | |
{ | |
class StreamSequence : IDisposable | |
{ |
View ffi-fn-registration.rs
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
use std::os::raw::c_void; | |
extern { | |
fn register_callback(callback: extern fn(*const c_void, u32), user: *const c_void); | |
} | |
fn register<F: Fn(u32)>(f: F) { | |
extern fn handler<F: Fn(u32)>(f_ptr: *const c_void, val: u32) { | |
let f = unsafe { &*(f_ptr as *const F) }; | |
f(val) | |
} |
NewerOlder