Skip to content

Instantly share code, notes, and snippets.

xinmeng1 / dynamicl_control_DOM_by_event.ts
Created Feb 23, 2017
View dynamicl_control_DOM_by_event.ts
setCssDynamical($event) {
$event.source.trigger.nativeElement.childNodes[0].setAttribute("style", "font-size: 20px;font-weight: bold")
//let elt = document.getElementsByClassName("mat-select-placeholder").item(0);
//elt.setAttribute("style", "font-size: 20px;font-weight: bold");
View gist:272d8e32d1dda58bbfa177393c9b9661
// slack2html
// by @levelsio
xinmeng1 / thread dump files
Created Aug 17, 2016
webstorm hang thread dump files
View thread dump files
"AWT-EventQueue-0 2016.2.1#WS-162.1447.27 WebStorm, eap:false, os:Linux 4.4.0-34-generic, java-version:JetBrains s.r.o 1.8.0_76-release-b216" prio=0 tid=0x0 nid=0x0 waiting on condition
java.lang.Thread.State: WAITING
on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@2e970c27
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(
at sun.awt.SunToolkit.awtLockWait(
at sun.awt.X11.XToolkit.getCurrentServerTime(
at sun.awt.X11.XClipboard.setContentsNative(
at sun.awt.datatransfer.SunClipboard.setContents(
xinmeng1 / Grial_icon.xml
Last active Apr 12, 2016
Xamarin Develop Gist
View Grial_icon.xml
<Label Grid.Column="1"
VerticalTextAlignment="Center" >
Text="&#xf075; "
FontSize="{StaticResource BaseFontSize}"
ForegroundColor="{StaticResource AccentColor}"
xinmeng1 / genymotionwithplay.txt
Created Mar 16, 2016 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
View genymotionwithplay.txt
Download the following ZIPs:
ARM Translation Installer v1.1 (
Download the correct GApps for your Android version:
Google Apps for Android 6.0 ( -
Google Apps for Android 5.1 ( -
Google Apps for Android 5.0 ( -
Google Apps for Android 4.4.4 ( -
Google Apps for Android 4.3 ( -
xinmeng1 /
Last active Feb 27, 2016
WEKA tipAdd value to an attribute in instances.For example:you create a instances from a csv. One of the attribute is name "Label" which is nominal type(maybe infect and normal).However the csv file only have normal label data. So when the instance created by the csv, the attribute only contain normal.@Attribute label {normal}.You need to add in…
Instances normalFullData = normalFullLoad.getDataSet();
//Add value "infect" to class attribute
AddValues filter = new AddValues();
boolean x = filter.setInputFormat(normalFullData);
normalFullData = Filter.useFilter(normalFullData, filter);
xinmeng1 /
Created Jan 12, 2016 — forked from staltz/
The introduction to Reactive Programming you've been missing