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 Util { | |
public static Set < String > toBigramsJava(String s1) { | |
Set < String > nx = new HashSet < String > (); | |
for (int i = 0; i < s1.length() - 1; i++) { | |
char x1 = s1.charAt(i); | |
char x2 = s1.charAt(i + 1); | |
String tmp = "" + x1 + x2; | |
nx.add(tmp); | |
} | |
return nx; |
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
export DEPLOY_ENV=dev | |
pip install requests | |
python ~/src/github.com/<your-path>/deploy-event.py |
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
<div class="navbar navbar-inverse navbar-fixed-top"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="navbar-brand hidden-xs" href="#">CompAny</a> | |
<a class="navbar-brand visible-xs" href="#">C</a> |
NewerOlder