This file contains hidden or 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 hidden or 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 hidden or 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
/* | |
*--------------------------------------------------------------- | |
*--------------------------------------------------------------- | |
*/ | |
(function($, undefined){ | |
"use strict"; | |
var MentionApp = MentionApp || {}; |
This file contains hidden or 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" => "[email protected]", "password" => "[email protected]", "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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
TestModel = Backbone.Model.extend({ | |
url: '/test' | |
}); | |
describe ('Model', function () { | |
it('should be able to change password (fake server)', function() { | |
var model, promise, request, server; | |
server = sinon.fakeServer.create(); | |
This file contains hidden or 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
# Switch to production | |
defaults delete com.evernote.Evernote | |
defaults write com.evernote.Evernote noteStoreURL https://www.evernote.com/edam/note | |
defaults write com.evernote.Evernote userStoreURL https://www.evernote.com/edam/user |