Skip to content

Instantly share code, notes, and snippets.

View luckcfm's full-sized avatar
🎯
Focusing

Lucas Cesar F. de Medeiros luckcfm

🎯
Focusing
  • VIACAST
  • Uberlândia, Brazil
  • X @luckcfm
View GitHub Profile
@avesus
avesus / test.c
Created April 21, 2015 22:30
iOS Multipath BSD Sockets Test. Comments welcomed!
# include <sys/types.h>
# include <sys/socket.h>
# include <ifaddrs.h>
# include <arpa/inet.h>
# include <netinet/in.h>
// Bad dirty quick functions written by hot fingers:
char* ipToStr(sockaddr* addr) {
static char ip[32];
@BrandonSmith
BrandonSmith / AndroidManifest.xml
Last active July 19, 2023 19:11
Quick example of how to schedule a notification in the future using AlarmManager
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cards.notification">
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"