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 | |
UNAME=$(uname) | |
if [ "$UNAME" == "Linux" ] ; then | |
echo "Linux" | |
elif [ "$UNAME" == "Darwin" ] ; then | |
echo "Darwin" | |
elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* ]] ; then |
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 Microsoft.Phone.Controls; | |
public static class WebBrowserScriptExtensions | |
{ | |
public static object ExecuteCode(this WebBrowser browser, string code) | |
{ | |
return browser.InvokeScript("eval", "(function(){\r\n" + code + "\r\n})();"); | |
} |
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
# curl -Lk https://gist.githubusercontent.com/prabirshrestha/279d8b179d9353fe8694/raw/.bash_profile -o ~/.bash_profile | |
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh # This loads NVM | |
export PATH="$HOME/.cargo/bin:$HOME/go/bin:$HOME/Library/Python/3.7/bin:$PATH" | |
export PATH="$HOME/.config/nvim/plugins/vim-themis/bin:$PATH" | |
stty -ixon | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' |
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
https://github.com/vim/vim/pull/10025 | |
-------------- | |
==== start log session ==== | |
0.057482 : raw terminal output: "[?1049h[22;0;0t[>4;2m[?1h=[?2004h[?1004h" | |
0.057531 : raw terminal output: "[1;34r[?12h[?12l[22;2t" | |
0.124131 : raw terminal output: "[2;1H▽[6n" | |
0.124184 : raw terminal output: "[2;1H [3;1HPzz\[0%m[6n" |
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
<%@ Page Language="C#" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head id="Head1" runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> |
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
namespace WebSocketHelloEchoServer.SocketIo | |
{ | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Net.WebSockets; | |
using System.Reflection; |
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.Linq; | |
using System.Runtime.InteropServices; | |
using EnvDTE; | |
using EnvDTE80; | |
using Microsoft.VisualStudio; | |
using Microsoft.VisualStudio.Shell; | |
using Microsoft.VisualStudio.Shell.Interop; | |
using Microsoft.VisualStudio.Text.Editor; | |
using Microsoft.VisualStudio.TextManager.Interop; |
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
``` | |
Sun 07 Feb 2021 05:23:29 PM UTC:["<---",1,"rust-analyzer",{"response":{"method":"$/progress","jsonrpc":"2.0","params":{"token":"rustAnalyzer/indexing","value":{"percentage":0,"message":"1/909 (alloc)","kind":"report"}}}}] | |
Sun 07 Feb 2021 05:23:29 PM UTC:["<---",1,"rust-analyzer",{"response":{"method":"$/progress","jsonrpc":"2.0","params":{"token":"rustAnalyzer/indexing","value":{"percentage":0,"message":"3/909 (panic_unwind)","kind":"report"}}}}] | |
Sun 07 Feb 2021 05:23:29 PM UTC:["<---",1,"rust-analyzer",{"response":{"method":"$/progress","jsonrpc":"2.0","params":{"token":"rustAnalyzer/indexing","value":{"percentage":0,"message":"4/909 (profiler_builtins)","kind":"report"}}}}] | |
Sun 07 Feb 2021 05:23:29 PM UTC:["<---",1,"rust-analyzer",{"response":{"method":"$/progress","jsonrpc":"2.0","params":{"token":"rustAnalyzer/indexing","value":{"percentage":0,"message":"5/909 (proc_macro)","kind":"report"}}}}] | |
Sun 07 Feb 2021 05:23:29 PM UTC:["<---",1,"rust-analyzer",{"response":{"method":"$/progress","jsonrpc":"2.0 |
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
public class ProgressBar | |
{ | |
private int _lastOutputLength; | |
private readonly int _maximumWidth; | |
public ProgressBar(int maximumWidth) | |
{ | |
_maximumWidth = maximumWidth; | |
Show(" [ "); | |
} |
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
# brew install --HEAD https://gist.github.com/prabirshrestha/5474490/raw/scriptcs.rb -v | |
# note: requires >= mono 3.0.6 (http://www.go-mono.com/mono-downloads/download.html) | |
require 'formula' | |
class Scriptcs < Formula | |
homepage 'https://github.com/dragan/scriptcs' | |
head 'https://github.com/dragan/scriptcs.git', :branch => 'mono-support' | |
NewerOlder