- Install autocomplete-plus and autocomplete-snippets plugins
- Add these snippets to your snippets.cson
- Try typing
u
and the LaTeX name of the symbol you want and you should get autocompletetion with a preview of the symbol
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
{ | |
"label" : "go", | |
"properties" : [ | |
{ | |
"label" : "id", | |
"type" : "java.lang.String" | |
}, | |
{ | |
"label" : "name", | |
"type" : "java.lang.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
{ | |
"schemas" : [ | |
{ | |
"label" : "enzymedb", | |
"properties" : [ | |
{ | |
"label" : "id", | |
"type" : "java.lang.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
import ohnosequences.pointless._, AnyTaggedType._ | |
trait AnyAct { | |
type Itm <: AnyTaggedType | |
val itm: Itm | |
// type Out[I <: Itm] = Tagged[I] | |
type Out = Tagged[Itm] | |
} |
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
scala> val conf = new org.apache.commons.configuration.BaseConfiguration() | |
conf: org.apache.commons.configuration.BaseConfiguration = org.apache.commons.configuration.BaseConfiguration@3ada9e37 | |
scala> conf.setProperty("storage.directory", "/media/ephemeral0/applicator/16s/bio4j") | |
scala> conf.setProperty("storage.backend", "berkeleyje") | |
scala> val graph = new com.bio4j.titan.model.ncbiTaxonomy.TitanNCBITaxonomyGraph( new com.bio4j.titan.util.DefaultTitanGraph( com.thinkaurelius.titan.core.TitanFactory.open(conf) ) ) | |
17:46:21.350 [main] DEBUG c.t.t.d.b.BerkeleyJEStoreManager - Opened database system_properties | |
java.lang.Throwable: null |
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
{-# LANGUAGE TemplateHaskell #-} | |
import Language.Haskell.TH | |
import Language.Haskell.TH.Lib hiding (rename) | |
import Control.Monad (liftM) | |
import Data.List (lookup) | |
import Data.Generics.Aliases (mkT) | |
import Data.Generics.Schemes (everywhere) | |
---------------------------------------------------------------- |
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
{-# LANGUAGE TemplateHaskell #-} | |
module Printf (printf) where | |
-- Импортируем инструментарий Template Haskell | |
import Language.Haskell.TH | |
-- | Шаблон для функции printf | |
-- Пример использования: | |
-- > putStrLn ( $(printf "Number %d is %s of %d.") 327 "square" (327^2) ) |
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
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, UndecidableInstances #-} | |
module Prolog (Petja, Vasja, Serg, Father, Son, GrandFather) where | |
data Petja = Petja | |
data Vasja = Vasja | |
data Serg = Serg |
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
module DecemberFair where | |
import Data.Maybe (listToMaybe) | |
import Data.List (permutations, nubBy) | |
-- only non-symetric permutations | |
permute :: (Eq a) => [a] -> [[a]] | |
permute = nubBy (\ys zs -> ys == (reverse zs)) . permutations | |
-- binary operators |
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
# assuming that this script lies in g8test/ folder of the root directory of a g8-template | |
cd g8test | |
g8 file://.. --name=template > /dev/null | |
echo "Template applied in g8test/template/" | |
cd template | |
echo "sbt test:" && sbt test | |
cd ../.. |
OlderNewer