This code requires:
- Node.js
- Python 2.7.x
- Java Runtime Environment
- mocha
- selenium-webdriver
- Selenium server
- DriverProvider
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 | |
(http://www.wtfpl.net/about/) | |
Copyright (C) 2015 Mario Mendes (@hyprstack) | |
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es) | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. |
This code requires:
public interface IRunner { void Execute(); } | |
// Add any unit tests by implementing IRunner and Linqpad will run it | |
public class UserTest_1 : IRunner | |
{ | |
public void Execute() | |
{ | |
Debug.WriteLine("Beginning test"); | |
var x = 4 + 5; |
Here are my attempts to script an IntelliJ-based IDE using javax.script.*
API (ex-JSR-223).
The list of available scripting languages and engines:
<app>/lib/groovy-jsr223-xxx.jar
<app>/jbr/...
(deprecated and will be removed soon)We are web site developers (a.k.a. webmasters) and we just want to get stuff done. We don't need Object Orientation and we don't need Design Patters and other boring and not easy to learn and understand stuff to get in our way to get our sites up and running.
And that's why our values are:
public RestApiResponse<bool> PutEnvelopesDocuments(string envelopeId, string documentId, string fullFileName, byte[] documentBytes) | |
{ | |
RestRequest request = GetBaseRequest("envelopes/{envelopeId}/documents/{documentId}", Method.PUT); | |
request.AddUrlSegment("envelopeId", envelopeId); | |
request.AddUrlSegment("documentId", documentId); | |
request.AddHeader("Content-Type", "application/pdf"); | |
request.AddHeader("Content-Disposition", | |
string.Format("file; filename=\"{0}\"; documentid={1}; fileExtension=\"{2}\"", | |
Path.GetFileNameWithoutExtension(fullFileName), documentId, Path.GetExtension(fullFileName))); |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.net.HttpURLConnection; | |
import java.net.InetSocketAddress; | |
import java.net.Proxy; | |
import java.net.URL; | |
import java.util.ArrayList; |
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
var sinon = require('sinon'); | |
var assert = require('assert'); | |
function async(cb) { | |
setTimeout(function() { | |
cb(); | |
}, 1000); | |
} | |
describe('async()', function() { |