Skip to content

Instantly share code, notes, and snippets.

View sirmagid's full-sized avatar
💭
hi

sirmagid sirmagid

💭
hi
View GitHub Profile
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++) {
@sirmagid
sirmagid / gist:ae0307a62b18939db13bbc0ea0c5595b
Created February 24, 2018 09:48
sort int java multimap
/*
* 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;
@sirmagid
sirmagid / UsefulUnityAssets.md
Created March 22, 2018 05:56 — forked from terrehbyte/UsefulUnityAssets.md
Useful Open-Source Unity Assets

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

#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'))
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
#!/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