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
import com.intellij.notification.* | |
import com.intellij.openapi.application.ApplicationManager | |
import com.intellij.openapi.vcs.changes.* | |
import javax.swing.SwingUtilities | |
static show(String htmlBody, String title = "", NotificationType notificationType = NotificationType.INFORMATION) { | |
SwingUtilities.invokeLater({ | |
def notification = new Notification("", title, htmlBody, notificationType) | |
ApplicationManager.application.messageBus.syncPublisher(Notifications.TOPIC).notify(notification) |
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
import com.intellij.notification.Notification | |
import com.intellij.notification.NotificationType | |
import com.intellij.notification.Notifications | |
import com.intellij.openapi.actionSystem.ActionManager | |
import com.intellij.openapi.actionSystem.DataContext | |
import com.intellij.openapi.actionSystem.KeyboardShortcut | |
import com.intellij.openapi.application.ApplicationManager | |
import com.intellij.openapi.editor.Editor | |
import com.intellij.openapi.editor.actionSystem.EditorAction | |
import com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler |
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
import org.junit.Test | |
class LineCount3 { | |
@Test void aaa() { | |
assert countLines("") == 0 | |
assert countLines(""" | |
""") == 0 | |
assert countLines(""" | |
int i = 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
import com.intellij.notification.* | |
import com.intellij.openapi.application.ApplicationManager | |
import com.intellij.openapi.fileEditor.FileEditorManager | |
import com.intellij.openapi.vcs.changes.Change | |
import com.intellij.openapi.vcs.changes.ChangeListManager | |
import javax.swing.SwingUtilities | |
static show(String htmlBody, String title = "", NotificationType notificationType = NotificationType.INFORMATION) { | |
SwingUtilities.invokeLater({ |
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
import org.scalatest.matchers.ShouldMatchers | |
import org.junit.Test | |
//object Sums { | |
// def main(args: Array[String]) { | |
// for(i <- 1 to 20) { println(i + " is " + new Sums().zeckendorfRepresentationOf(i).mkString(" or "))} | |
// } | |
//} | |
class Sums extends ShouldMatchers { |
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
import org.scalatest.matchers.ShouldMatchers | |
import org.junit.Test | |
//object Sums { | |
// def main(args: Array[String]) { | |
// for(i <- 1 to 20) { println(i + " is " + new Sums().fibonacciZeckendorfRepresentationOf(i).mkString(" or "))} | |
// } | |
//} | |
class Sums extends ShouldMatchers { |
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
#/bin/sh | |
FILE_NAME=$1 | |
FILE_PATH=$2 | |
gcc -o $FILE_NAME $FILE_PATH/$FILE_NAME.c && ./$FILE_NAME |
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
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.module.ModuleManager | |
import com.intellij.openapi.roots.DependencyScope | |
import com.intellij.openapi.roots.ModuleRootManager | |
import com.intellij.openapi.roots.OrderRootType | |
import com.intellij.openapi.roots.ProjectRootManager | |
import ru.intellijeval.PluginUtil | |
import static ru.intellijeval.PluginUtil.runWriteAction | |
import static ru.intellijeval.PluginUtil.show |
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
import com.intellij.psi.PsiClassType | |
import com.intellij.psi.PsiElement | |
import com.intellij.psi.PsiExpression | |
import com.intellij.psi.PsiMethodCallExpression | |
import com.intellij.psi.PsiReferenceParameterList | |
import com.intellij.psi.PsiStatement | |
import com.intellij.psi.PsiTypeElement | |
import com.intellij.psi.PsiVariable | |
import com.intellij.psi.PsiMethod |
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
import com.intellij.codeInsight.highlighting.HighlightManager | |
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.application.ApplicationManager | |
import com.intellij.openapi.editor.event.SelectionEvent | |
import com.intellij.openapi.editor.event.SelectionListener | |
import com.intellij.openapi.editor.markup.EffectType | |
import com.intellij.openapi.editor.markup.HighlighterLayer | |
import com.intellij.openapi.editor.markup.HighlighterTargetArea | |
import com.intellij.openapi.editor.markup.TextAttributes | |
import com.intellij.openapi.fileEditor.FileEditorManager |
OlderNewer