Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
hi

sirmagid sirmagid

💭
hi
View GitHub Profile
View tabelToJson.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#sirmagid@gmail.com
#pip install beautifulsoup4
import json
import xml.etree.ElementTree as ET
import os
from collections import OrderedDict
from bs4 import BeautifulSoup
import json
View cenots7-commend
vi /usr/bin/yum
yum install nodejs
whereis python3.7
//$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
tar xf Python-3.*
zxvf for tgz
$ ./configure
make
make install
make altinstall
View FileZilla.py
#get file name file upload to server
import xml.etree.ElementTree as ET
tree = ET.parse('e:\\FileZilla.xml')
root = tree.getiterator('File') #.getroot()
n2 = len(root)
print("len= \"%s\"" % (n2))
for element in root: #.getiterator('RemoteFile'):
#print (element.attrib)
print (element.findtext('RemoteFile'))
@sirmagid
sirmagid / UsefulUnityAssets.md
Created Mar 22, 2018 — forked from terrehbyte/UsefulUnityAssets.md
Useful Open-Source Unity Assets
View UsefulUnityAssets.md

Useful Open-Source Unity Assets

This is a compilation of various open-source Unity plugins, codebases, or utility scripts that may aid in expediting the development process.

Art / Design Tools

ProbePolisher - Light Probe Editor - keijiro

"ProbePolisher is a Unity Editor plugin for editing light probes. It works both on Unity Basic (free) and Unity Pro."

Code
Releases

View gist:ae0307a62b18939db13bbc0ea0c5595b
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sampel;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ImmutableMultimap;
View hid_tel #####***####
String hid_tel(String tel){
try {
int temp_lengh = tel.length();
String temp_orginal=tel;
tel = tel.substring(tel.length() - 4);
String firest_tel= temp_orginal.substring(0,5);
StringBuffer bf = new StringBuffer();
bf.append(firest_tel);
for (int tok = 6; tok <= temp_lengh - 4; tok++) {