This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <krb5.h> | |
int main() | |
{ | |
printf("krb5_principal: %zu chars\n", sizeof(krb5_principal)/sizeof(char)); | |
printf("krb5_creds: %zu chars\n", sizeof(krb5_creds)/sizeof(char)); | |
printf("krb5_verify_init_creds_opt: %zu ints\n", sizeof(krb5_verify_init_creds_opt)/sizeof(int)); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
wales = Nokogiri::XML(File.read('GB.kml')) ; 1 | |
las = {'6B1' => 'Anglesey', | |
'6C2' => 'Blaenau Gwent', | |
'6B3' => 'Bridgend', | |
'6B2' => 'Caerphilly', | |
'6A8' => 'Cardiff', | |
'6B7' => 'Carmarthenshire', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python manage.py create_foreign_keys | |
python manage.py create_indexes | |
python manage.py create_matviews | |
python manage.py import_ccg_boundaries --filename data/org_codes/welsh_localities.kml | |
python manage.py import_welsh_local_health_board_names | |
python manage.py import_welsh_locality_names | |
python manage.py fetch_nwssp_prescribing | |
python manage.py import_nwssp_practices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
module GoogleBase32 | |
Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567" #RFC4648 | |
Digits = Alphabet.chars | |
Mask = Digits.length - 1 | |
Shift = Digits.length.to_s(2).match(/0*\Z/)[0].length | |
def self.encode_array(array) |
NewerOlder