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
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMIT" = "FULL_SHA" ]; | |
then | |
skip_commit "$@"; | |
else | |
git commit-tree "$@"; | |
fi' HEAD |
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 JsonSerializerTest { | |
@Test | |
public void testGsonInterpret() throws Exception { | |
Definition expected = Definition.builder().domain("places").traitName("TrainStation") | |
.desc("london underground").tag("lgu").tag("tube").tag("tfl") | |
.property(Property.builder("name", StringTraitRef)) | |
.property(Property.builder("age", IntegerTraitRef)) | |
.build(); | |
Gson gson = new GsonBuilder() |
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
nvm install 0.10 | |
nvm use 0.10 | |
npm install -g jshint | |
curl -o meteor_install_script.sh https://install.meteor.com/ | |
chmod +x meteor_install_script.sh | |
sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh | |
./meteor_install_script.sh | |
export PATH=$PATH:~/.meteor/ | |
meteor --version |
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 blockspring | |
from twilio.util import TwilioCapability | |
def block(request, response): | |
account_sid = request.params["account_sid"] | |
auth_token = request.params["auth_token"] | |
application_sid = request.params["application_sid"] | |
capability = TwilioCapability(account_sid, auth_token) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Sample Conference</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" /> | |
<link rel="stylesheet" href="twilio.css" /> | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say>You have joined simple conference room</Say> | |
<Dial> | |
<Conference startConferenceOnEnter="true" endConferenceOnExit="true">simple-conference</Conference> | |
</Dial> | |
</Response> |
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
String header_val = "<!DOCTYPE html>\n<html>\n" + | |
" <head>\n" + | |
" <title>Hello Client Monkey 6</title>\n" + | |
" <script type=\"text/javascript\"\n src=\"//static.twilio.com/libs/twiliojs/1.2/twilio.min.js\"></script>\n" + | |
" <script type=\"text/javascript\"\n src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\"></script>\n" + | |
" <link href=\"http://static0.twilio.com/packages/quickstart/client.css\" type=\"text/css\" rel=\"stylesheet\" />\n" + | |
" <script type=\"text/javascript\">\n" + | |
" Twilio.Device.setup(\"" + token + "\");\n" + | |
" Twilio.Device.ready(function (device) {\n" + | |
" $(\"#log\").text(\"Client '" + client_name + "' is ready\");\n" + |
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 serpentes.testing; | |
import org.testng.annotations.Test; | |
import java.lang.reflect.Field; | |
import static org.testng.Assert.assertEquals; | |
public class FunClassTest { |
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.google.common.collect.ImmutableMap; | |
import javax.tools.*; | |
import java.net.URI; | |
import java.net.URISyntaxException; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
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 igloo.viper.api; | |
import com.google.common.collect.ImmutableMap; | |
import lombok.RequiredArgsConstructor; | |
import java.util.Collections; | |
import java.util.Map; | |
@RequiredArgsConstructor | |
public final class MapContext { |