const props = { disableTooltip: disableTooltipMock };
const wrapper = shallow(<PlannerTooltip {...props} />);
wrapper.props()
{ | |
// Place your global snippets here. | |
"React stateless flow component": { | |
"scope": "javascript,typescript,babel", | |
"prefix": "reactslf", | |
"body": [ | |
"// @flow\nimport React from 'react';\n", | |
"type PropTypes = {", | |
" $0someProp: string", | |
"}\n", |
En text om hur fantastisk Erik är |
package ejb.servlet; | |
import java.io.IOException; | |
import java.util.Set; | |
import javax.ejb.EJB; | |
import javax.servlet.RequestDispatcher; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script> | |
<script type="text/javascript" src="../static/js/moment.min.js"></script> | |
<script type="text/javascript" src="../static/js/app.js"></script> | |
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css"> |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/', defaults={'path': ''}) | |
@app.route('/<path:path>') | |
def catch_all(path): | |
return 'You want path: %s' % path | |
if __name__ == '__main__': | |
app.run() |
private void button2_Click(object sender, EventArgs e) | |
{ | |
ReadFromTheInternets internetReader = new ReadFromTheInternets("http://stinaq.me/license.txt", richTextBox1); | |
Thread myThread = new Thread(new ThreadStart(internetReader.ReadWebPage)); | |
myThread.Start(); | |
} | |
class ReadFromTheInternets | |
{ |
$(function(){ | |
var $result = $('#result'); | |
var $form = $('#cakedayForm'); | |
var userUrl = null; | |
var daysLeft = null; | |
var getDaysLeft = function() { | |
$.getJSON(userUrl, | |
function(data){ |
namespace Stina | |
{ | |
class Stina : String | |
{ | |
public static Awesome Q() | |
{ | |
return new Awesome(); | |
} | |
} | |
} |