|
You are here |
gist.github.com | ||
| | | | |
connorberry.com
|
|
| | | | | Language Comparison Perl: while (<>) { print "$. : $_" } Perl: while (<>) { print "$. : $_" } CSharp: using System; using System.IO; class App { public static void Main(string[] args) { int line_number = 1; foreach (string arg in args) { foreach (string line in File.ReadLines(arg)) { Console.WriteLine(line_number + ":" + line);... | |
| | | | |
mariocarrion.com
|
|
| | | | | I'm starting the Mono POSIX shared memory wrapping, decided to begin dllimporting shm_open, however doesn't seems to be easy at all, my current effort is: using System; using System.Runtime.InteropServices; namespace Mono.Posix { public class SharedMemory { public SharedMemory () { } [DllImport ("librt", EntryPoint="shm_open", CharSet=CharSet.Ansi, CallingConvention=CallingConvention.StdCall)] public static extern IntPtr Open ( [MarshalAs (UnmanagedType.LPStr)] string name, int oflag, int mode_t); public... | |
| | | | |
brianreiter.org
|
|
| | | | | Normally, the macOS Terminal.app title bar includes the current directory name. When you connect to a remote host with openssh on macOS, the title bar gets updated to be "$(whoami)@$(hostname): $(pwd)" instead. Unfortunately when you exit ssh, the terminal title bar is not restored and continues to say you are on a remote host. Once... | |
| | | | |
tradinggeek.com
|
|
| | | URGENT: I'M SELLING BITCOIN NOW... Automate Your Trading- Enrich Your Crypto Earnings! Get Up To 40% OFF! source | ||