This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void LogText(string message) | |
| { | |
| log_rtb.Invoke(((MethodInvoker)delegate | |
| { | |
| log_rtb.AppendText(String.Format("-{0}: \r\n", message)); | |
| })); | |
| } | |
| protected void ClearText() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://skill.codeplex.com/ | |
| inurl:ftp -inurl:http -inurl:https .css |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iTween.ValueTo(_maskPanel.gameObject, iTween.Hash( | |
| "onupdate", "_showMaskEffSizeDelta", | |
| "from", Vector2.zero, | |
| "to", new Vector2(1200, 1200), | |
| "easetype", iTween.EaseType.easeInCirc, | |
| "onupdatetarget", this.gameObject, | |
| "time", timeOfEffect | |
| )); | |
| iTween.ValueTo(_maskPanel.gameObject, iTween.Hash( | |
| "onupdate", "_showMaskEffPosition", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xpath no child | |
| //*[count(*)=0] | |
| xpath attribute | |
| /div[@class='td_block_inner'] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary>Serializes the specified object as a JSON string</summary> | |
| /// <param name="objectToSerialize">Specified object to serialize</param> | |
| /// <returns>JSON string of serialzied object</returns> | |
| private static string Serialize(object objectToSerialize) | |
| { | |
| using (System.IO.MemoryStream _Stream = new System.IO.MemoryStream()) | |
| { | |
| try | |
| { | |
| var _Serializer = new System.Runtime.Serialization.Json.DataContractJsonSerializer(objectToSerialize.GetType()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "", | |
| "version": "1.0.0", | |
| "authors": [ | |
| "Flatfull" | |
| ], | |
| "description": "", | |
| "keywords": [ | |
| "AngularJS", | |
| "admin", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=ContextMenu}, Path=PlacementTarget.SelectedItem}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| Regex regexObj = new Regex(@"library/(\d*)", RegexOptions.Multiline); | |
| resultString = regexObj.Match(subjectString).Groups[1].Value; | |
| Console.WriteLine(resultString); | |
| } catch (ArgumentException ex) { | |
| // Syntax error in the regular expression | |
| Console.WriteLine(ex.StackTrace); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Main() | |
| { | |
| var url="http://google.com"; | |
| var startPos=url.IndexOf("chuong-")+7; | |
| startPos.Dump(); | |
| var endPos=url.IndexOf("-",url.IndexOf("chuong-")+7)-startPos; | |
| endPos.Dump(); | |
| var result=url.Substring(startPos,endPos); | |
| result.Dump(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class StringUtil | |
| { | |
| private static readonly string[] VietnameseSigns = new string[] | |
| { | |
| "aAeEoOuUiIdDyY", | |
| "áàạảãâấầậẩẫăắằặẳẵ", | |
| "ÁÀẠẢÃÂẤẦẬẨẪĂẮẰẶẲẴ", | |
| "éèẹẻẽêếềệểễ", | |
| "ÉÈẸẺẼÊẾỀỆỂỄ", | |
| "óòọỏõôốồộổỗơớờợởỡ", |
OlderNewer