What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-02 02:16:04
adobe analytics time parting plugin
/******************************************* BEGIN CODE TO DEPLOY *******************************************/ /* Adobe Consulting Plugin: getTimeParting v6.2 */ var getTimeParting=function(a){a=document.documentMode?void 0:a||"Etc/GMT";a=(new D... Add solution -
Javascript 2021-10-01 18:32:02
how to add element in json object
// base code ---------------------------------------------------------- object["property"] = value; // or object.property = value; // exampel : ---------------------------------------------------------- var myJson = { name: "mamad"... Add solution -
Python 2021-10-01 13:18:02
how to read a CSV file line by line with or without header in python
#Read a CSV file line by line using csv.reader #Suppose we have a csv file students.csv and its contents are, Id,Name,Course,City,Session 21,Mark,Python,London,Morning 22,John,Python,Tokyo,Evening 23,Sam,Python,Paris,Morning 32,Shaun,Java,Tokyo,Morning ... Add solution -
TypeScript 2021-09-30 21:55:04
merge lists c++
// list::merge #include <iostream> #include <list> // compare only integral part: bool mycomparison (double first, double second) { return ( int(first)<int(second) ); } int main () { std::list<double> first, second; first.push_... Add solution -
Python 2021-09-28 23:13:04
python add one month to a date
import datetime import calendar def add_months(sourcedate, months): month = sourcedate.month - 1 + months year = sourcedate.year + month // 12 month = month % 12 + 1 day = min(sourcedate.day, calendar.monthrange(year,month)[1]) return... Add solution