What do you want to save?
Add Code snippet
New code examples in category C
-
Awgiedawgie 2022-05-13 17:05:56
linguagem c imprimir ficheiro texto no ecra
#include <stdio.h> #include <stdlib.h> /* retorna 1 se 'c' é uma vogal, retorna 0 caso contrário */ int eh_vogal( char c ) { return ( c == 'a' || c == 'A' || c == 'e' || c == 'E' || ... Add solution -
Awgiedawgie 2022-05-13 16:56:01
printf in c
/* printf example */ #include <stdio.h> int main() { printf ("Characters: %c %c \n", 'a', 65); printf ("Decimals: %d %ld\n", 1977, 650000L); printf ("Preceding with blanks: %10d \n", 1977); printf ("Pr... Add solution -
Awgiedawgie 2022-05-13 16:55:15
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. import yaml f = open(filaname_path, 'r') yaml.load(f, Loader=yaml.FullLoader) Add solution -
Awgiedawgie 2022-05-13 15:05:36
nginx reverse proxy nextcloud
//This use case assumes you are using a docker container. //If not you can change the ip information too server { listen 80; server_name domain.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name ... Add solution -
Awgiedawgie 2022-05-13 14:31:24
Hamming Distance ErrorDetection And Correction method c implementation
//HAMMING CODE for error detection and correction #include<stdio.h> int main() { int a[4],b[4],r[3], s[3],i,q[3]; printf("\nenter 4 bit data word:\n"); for(i=3;i>=0;i--) { scanf("%d",&a[i]); } r[0]=(a[2]+a[1]+a[0])%2; r[1]... Add solution -
Awgiedawgie 2022-05-13 13:31:19
spacemacs start server
#!/usr/bin/env zsh# Checks if there's a frame openemacsclient -n -e “(if (> (length (frame-list)) 1) ‘t)” 2> /dev/null | grep t &> /dev/nullif [ “$?” -eq “1” ]; then emacsclient -a ‘’ -nqc... Add solution
Best helpers
Ranking is empty