Skip to content

Instantly share code, notes, and snippets.

View soimort's full-sized avatar

Mort Yao soimort

View GitHub Profile
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);
@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%
@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 ^
# SciTE user properties
# @prog scite
# @lastProgVers 3.6.2
# @since 2015-12-23
# @lastChanged 2015-12-23
# @author Mort Yao <[email protected]>
# Default encoding (UTF-8)
code.page=65001
@soimort
soimort / Grep.hs
Last active October 14, 2015 22:06
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 March 23, 2015 03:33
Compiling CppSharp on Linux
➜ 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

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:

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 December 16, 2015 05:58
GCJ 2013 Qualification Round - Problem A
# 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 April 15, 2013 13:05
GCJ 2013 Qualification Round - Problem A
-- Authored by tanakh
{-# LANGUAGE TupleSections #-}
import Control.Applicative
import Control.Monad
import Data.List
import Text.Printf
main :: IO ()
main = do