Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>active</key>
<true/>
<key>addr</key>
<integer>0</integer>
<key>altid</key>
<integer>0</integer>
@lexab
lexab / lesson2.cpp
Created September 23, 2018 20:49
Example for my son
#include <iostream>
#include <fstream>
#include <valarray>
/*
This code read matrix like this:
4 5
1 2 3 4 5
6 12 8 9 10
11 12 12 14 15
16 17 18 12 20
@lexab
lexab / isip.rl
Created July 25, 2018 15:00 — forked from jlyo/isip.rl
Ragel IPv4/6 address validator
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netdb.h>
%%{
machine isip;
octet4 = [0-9]{1,2}