This file contains 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
<idea-plugin version="2"> | |
<id>com.your.company.unique.plugin.id</id> | |
<name>Plugin display name here</name> | |
<version>1.0</version> | |
<vendor email="support@yourcompany.com" url="http://www.yourcompany.com">YourCompany</vendor> | |
<description><![CDATA[ | |
sample code for dev fest.<br> | |
<em>most HTML tags may be used</em> | |
]]></description> |
This file contains 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 MouseClickAction extends AnAction { | |
@Override | |
public void actionPerformed(AnActionEvent e) { | |
PsiClass psiClass=getPsiClassFromContext(e); | |
new ToStringGenerator(psiClass).execute(); | |
} | |
This file contains 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 ToStringGenerator extends WriteCommandAction.Simple { | |
private PsiClass aClass; | |
public ToStringGenerator(PsiClass aClass) { | |
super(aClass.getProject(), aClass.getContainingFile()); | |
this.aClass = aClass; | |
} |
This file contains 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
-dontwarn sun.reflect.** | |
-dontwarn java.beans.** | |
-keep,allowshrinking class com.esotericsoftware.** { | |
<fields>; | |
<methods>; | |
} | |
-keep,allowshrinking class java.beans.** { *; } | |
-keep,allowshrinking class sun.reflect.** { *; } | |
-keep,allowshrinking class com.esotericsoftware.kryo.** { *; } | |
-keep,allowshrinking class com.esotericsoftware.kryo.io.** { *; } |
This file contains 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
package com.nvinayshetty.refresher; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
This file contains 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
digraph matterStateMachine { | |
Solid -> Liquid [label="OnMelted"] | |
Liquid -> Solid [label="OnFrozen"] | |
Liquid -> Gas [label="OnVaporized"] | |
Gas -> Liquid [label="OnCondensed"] | |
} |
This file contains 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
dot -Tpng matterStateMachine.dot -o matterStateMachine.png |
This file contains 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
data class StateMachine(val states: Set<State>) | |
data class State(val name:String, val transitions:Set<Transition>) | |
data class Transition(val event:Event,val nextState:String) | |
data class Event(val eventName: String) |
This file contains 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
syntax = "proto3"; | |
message Person{ | |
string first_name = 1; | |
string last_name = 2; | |
int32 age = 3; | |
float weight = 4; | |
repeated string addresses = 5; | |
enum Gender{ | |
Unknown = 0; |
This file contains 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
message SampleMessage { | |
oneof test_oneof { | |
string name = 4; | |
SubMessage sub_message = 9; | |
} | |
} |
OlderNewer