Skip to content

Instantly share code, notes, and snippets.

Mort Yao soimort

Block or report user

Report or block soimort

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View caja-last-tabs.patch
diff -Naur /home/soimort/abs/caja/src/caja-1.16.1-orig/src/caja-application.c /home/soimort/abs/caja/src/caja-1.16.1/src/caja-application.c
--- /home/soimort/abs/caja/src/caja-1.16.1-orig/src/caja-application.c 2016-10-18 15:36:20.000000000 +0200
+++ /home/soimort/abs/caja/src/caja-1.16.1/src/caja-application.c 2016-12-08 02:47:25.608674396 +0100
@@ -125,7 +125,7 @@
CajaApplication *application);
static void drive_listen_for_eject_button (GDrive *drive,
CajaApplication *application);
-static void caja_application_load_session (CajaApplication *application);
+static gboolean caja_application_load_session (CajaApplication *application);
static char * caja_application_get_session_data (void);
View you-get.bat
@echo off
if not exist you-get.exe (
cls
echo you-get.exe could not be found.
goto:error
)
set PATH=%~dp0\;%PATH%
set PATH=%~dp0\deps\ffmpeg\bin;%PATH%
View pack.bat
@echo off
C:
cd msys64\home\win7\you-get
pyinstaller -F -i %~dp0\_you-get.ico --distpath=%~dp0\you-get ^
--path=src ^
--hidden-import=you_get.extractors ^
--hidden-import=you_get.cli_wrapper ^
--hidden-import=you_get.processor ^
View .SciTEUser.properties
# SciTE user properties
# @prog scite
# @lastProgVers 3.6.2
# @since 2015-12-23
# @lastChanged 2015-12-23
# @author Mort Yao <soi@mort.ninja>
# Default encoding (UTF-8)
code.page=65001
View Grep.hs
module Main where
import Data.Time
import Debug.Trace
import Data.Char hiding (empty)
import Data.List (findIndex)
import Data.Map hiding (findIndex, foldl)
import Text.ParserCombinators.ReadP
@soimort
soimort / gist:6f5e75050ee7fbb7c117
Created Mar 23, 2015
Compiling CppSharp on Linux
View gist:6f5e75050ee7fbb7c117
➜ build git:(master) make -C gmake config=release_x64
make: Entering directory `/home/soimort/Source/CppSharp/build/gmake'
==== Building CppSharp.AST (release_x64) ====
Creating ../lib/Release_x64
Creating ../obj/x64/Release/CppSharp.AST
==== Building CppSharp.Runtime (release_x64) ====
Creating ../obj/x64/Release/CppSharp.Runtime
==== Building CppSharp.CppParser (release_x64) ====
Creating ../obj/x64/Release/CppSharp.CppParser
AST.cpp
View keybase.md

Keybase proof

I hereby claim:

  • I am soimort on github.
  • I am soimort (https://keybase.io/soimort) on keybase.
  • I have a public key whose fingerprint is 8A9C A653 83B6 71BC 995C CEAE 07DA 00CB 7820 3251

To claim this, I am signing this object:

View gist:7581464
import java.io.*;
import java.net.*;
public class ComTestServer {
public static void main(String[] args) {
ServerSocket serverSocket = null;
Socket clientSocket = null;
ObjectInputStream in = null;
ObjectOutputStream out = null;
@soimort
soimort / gist:5387922
Last active Dec 16, 2015
GCJ 2013 Qualification Round - Problem A
View gist:5387922
# Authored by soimort
import sys
def test_status(lst):
count = {'X': 0, 'O': 0, 'T': 0, '.': 0}
for elem in lst:
count[elem] += 1
if count['X'] == 4 or count['X'] == 3 and count['T'] == 1:
return 'X'
@soimort
soimort / gist:5387914
Created Apr 15, 2013
GCJ 2013 Qualification Round - Problem A
View gist:5387914
-- Authored by tanakh
{-# LANGUAGE TupleSections #-}
import Control.Applicative
import Control.Monad
import Data.List
import Text.Printf
main :: IO ()
main = do
You can’t perform that action at this time.