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 Global { | |
public static Temporary[] a; | |
public static void main(String [] args) throws Throwable | |
{ | |
new Temporary().finalize(); | |
System.out.println(Global.a[0].toString()); | |
} | |
} |
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
AsyncProcess = require('./async-process').AsyncProcess | |
describe('AsyncProcess', function() { | |
var asyncProcess; | |
beforeEach(function() { | |
asyncProcess = new AsyncProcess(); | |
}); | |
it('should process 42', function() { |
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
terminal = require('color-terminal') | |
log = (error, stdout, stderr, cb) -> | |
if error | |
terminal.color('red').write stdout | |
else | |
terminal.color('green').write stdout | |
cb() |
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
<?php | |
$url = "https://api.mention.com/api/accounts"; | |
$postValues = array( "name" => "Mon nom trop bien", "email" => "test@test.fr", "password" => "motdepasse@de.fr", "language_code" => "fr", "client" => "feedsens"); | |
$curlHandle = curl_init(); | |
curl_setopt($curlHandle, CURLOPT_URL, $url); | |
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept: application/json')); | |
curl_setopt($curlHandle, CURLOPT_POST, true); | |
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, json_encode($postValues)); |
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
curl -X POST \ | |
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \ | |
https://api.mailjet.com/v3/REST/contact/$ID/managecontactslists \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"ContactsLists":[ | |
{ | |
"ListID”: list_id, | |
"Action": "addnoforce" | |
}, |
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
curl -X POST \ | |
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \ | |
https://api.mailjet.com/v3/REST/contact/managemanycontacts \ | |
-H "Content-Type: application/json" \ | |
'{ | |
"ContactsLists": [ | |
{ | |
"ListID": 1, | |
"Action": "addnoforce" | |
}, |
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
{ | |
"Count": 1, | |
"Data": [ | |
{ | |
"JobID": 35800 | |
} | |
], | |
"Total": 1 | |
} |
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
curl -X GET / | |
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" / | |
https://api.mailjet.com/v3/REST/contact/managemanycontacts/JobID |
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
curl -X GET \ | |
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" | |
https://api.mailjet.com/v3/REST/contact/$ID/getcontactslists |
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
curl -X POST \ | |
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \ | |
https://api.mailjet.com/v3/REST/contactslist/$ID/managecontact \ | |
-H "Content-Type: application/json" \ | |
-d '{ | |
"Email": "email@example.com", | |
"Name": "Contact", | |
"Action": "addnoforce", | |
"Properties": { | |
"property1": "value", |
OlderNewer