Skip to content

Instantly share code, notes, and snippets.

View liq07lzucn's full-sized avatar

liq07lzucn

  • other
  • Shanghai,China
View GitHub Profile
@liq07lzucn
liq07lzucn / README.md
Created June 11, 2023 07:28 — forked from liitfr/README.md
[how to revert 100644 → 100755 commits ?] #git #chmod

how to revert 100644 → 100755 commits

  • on your repo's root, run : find . -type f | xargs chmod -x
  • commit this change on files : commit -n -m 'fix: files permission from 100755 to 100644'
  • then with vim .git/config, set filemode option to false
[core]
        filemode = false
@liq07lzucn
liq07lzucn / make_3d_pdf.py
Created June 29, 2016 17:46 — forked from mgmarino/make_3d_pdf.py
Split Geant4 VRML files
import sys
import re
def split_g4_vrml_file(afile):
one_string = open(afile).read()
split_string = one_string.split('#')
file_output_list = {}
camera = ""
temp = re.compile("---------- (.*)")
obj_name = re.compile("(.*): (.*)\..*")
@liq07lzucn
liq07lzucn / md-menu.html
Created March 19, 2016 19:13 — forked from cloudsben/md-menu.html
markdown menu
<link rel="stylesheet" href="http://yandex.st/highlightjs/6.2/styles/googlecode.min.css">
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="http://yandex.st/highlightjs/6.2/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script type="text/javascript">
$(document).ready(function(){
$("h2,h3,h4,h5,h6").each(function(i,item){
var tag = $(item).get(0).localName;