View Plugin.xml
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> |
View MouseClickAction.java
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(); | |
} | |
View ToStringGenerator.java
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; | |
} |
View Snappy db progaurd rules
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.** { *; } |
View sample test
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); |
View matterStateMachine.dot
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"] | |
} |
View dotCommand.bash
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 |
View StateMachineDataStructure.kt
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) |
View simple_proto.proto
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; |
View one_of.proto
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