What do you want to save?
Add Code snippet
New code examples
-
Python 2021-12-23 17:44:14
IPTC text classification example
CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(curl, CURLOPT_URL, "https://api.meaningcloud.com/class-1.1?key=<your_key>&txt=&l... Add solution -
C++ 2021-11-19 07:23:09
c++ custom compare in set
struct compare { bool operator() (const int& x, const int& y) const { return x<y; // if x<y then x will come before y. Change this condition as per requirement } }; int main() { set<int,compare> s; //use the comparato... Add solution -
C# 2021-11-17 09:10:14
c# Console Font
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Drawing; namespace ConsoleExtender { [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct ConsoleFon... Add solution -
Swift 2021-11-16 22:24:16
change placeholder color swift
//- Custom TextField // You can always create your own custom Views to use everywhere: struct CustomTextField: View { var placeholder: Text @Binding var text: String var editingChanged: (Bool)->() = { _ in } var commit: ()->() = { }... Add solution -
C# 2021-11-13 21:54:18
can you stroe a refernce in c#
// As in having a pointer/reference to this NON object you can make a class for // it which will be shown down below but on its own a non-object can't have a // stored reference outside functions like this: public void Myfunction(ref int myInt) { //se... Add solution