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
Invalid basic header. No credentials provided. | |
Invalid basic header. Credentials string should not contain spaces. | |
Invalid basic header. Credentials not correctly base4 encoded. | |
Invalid username/password. | |
User inactive or deleted. |
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
from facebook_business.adobjects.adaccount import AdAccount | |
from facebook_business.api import FacebookAdsApi | |
from facebook_business.adobjects.adset import AdSet | |
from facebook_business.adobjects.adsinsights import AdsInsights | |
import arrow | |
my_access_token = 'xxx' | |
my_app_id = 'xxx' | |
my_app_secret = 'xxx' |
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
//Þetta setur allar möppur sem 755 (recursive) | |
find . -type d -exec chmod 755 {} \; | |
//Þetta setur alla fæla sem 644 (recursive) | |
find . -type f -exec chmod 644 {} \; |
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
var parseQueryString = function(url) { | |
var urlParams = {}; | |
url.replace( | |
new RegExp("([^?=&]+)(=([^&]*))?", "g"), | |
function($0, $1, $2, $3) { | |
urlParams[$1] = $3; | |
} | |
); | |
return urlParams; |
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
var sendEmail = function(settings) { | |
//attachmentName should be the full name. Example: reikningur.pdf | |
var s = { | |
from: settings.from, | |
replyTo: settings.replyTo, | |
to: settings.to, | |
subject: settings.subject, | |
body: settings.body, | |
attachment: settings.attachment, |
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
//This is a comment | |
function cssAnimationEvent(element, type, callback) { | |
var self = this; | |
var pfx = ["webkit", "moz", "MS", "o", ""]; | |
for (var p = 0; p < pfx.length; p++) { | |
if (!pfx[p]) type = type.toLowerCase(); | |
element.addEventListener(pfx[p]+type, function() { | |
callback(element); | |
}, false); | |
} |