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/python | |
__version__ = "$Revision: 0.2 $" | |
__author__ = "Nicolas Seriot" | |
__date__ = "2005-07-20" | |
"""" | |
Test dead links from a web page list. | |
Written to help someone on a newsgroup. |
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/python | |
# -*- coding: iso-8859-1 -*- | |
__version__ = "$Revision: 0.1$" | |
__author__ = "Nicolas Seriot" | |
__date__ = "2005-01-16" | |
"""" | |
Her: Would you count 2 minutes and a half plase? | |
Me : $ timer 2 30 |
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/python | |
"""" | |
Counts the number of heartbeats per minute. | |
For example, you can use it to count your mp3's bpm or your number or heartbeats or breaths per minute. | |
$ python bpm.py | |
BPM - Calcule les bpm sur les 4 derniers beats. | |
Appuyer sur a chaque beat, 'q' pour quitter. |
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
# http://corkami.googlecode.com/svn/trunk/src/HexII/ | |
$ ./hello | |
Hello world | |
$ hexdump hello | |
0000000 ce fa ed fe 07 00 00 00 03 00 00 00 02 00 00 00 | |
0000010 02 00 00 00 88 00 00 00 01 00 00 00 01 00 00 00 | |
0000020 38 00 00 00 5f 5f 54 45 58 54 00 00 00 00 00 00 | |
0000030 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 |
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
// | |
// main.m | |
// Unicode | |
// | |
// Created by Nicolas Seriot on 26/07/14. | |
// Copyright (c) 2014 Nicolas Seriot. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <AppKit/AppKit.h> |
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 python | |
HIGH_BITS_MAX = 0xFF | |
LOW_BITS_MAX = 0xFF | |
def write_plane(plane_number, path): | |
with open(path, 'w+') as f: | |
f.write("""<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> |
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
// | |
// main.m | |
// Unicode | |
// | |
// Created by Nicolas Seriot on 26/07/14. | |
// Copyright (c) 2014 Nicolas Seriot. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <AppKit/AppKit.h> |
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
#import <CoreData/CoreData.h> | |
@interface NSManagedObject (NST) | |
+ (NSManagedObjectContext *)moc; | |
+ (NSManagedObjectModel *)mom; | |
+ (NSEntityDescription *)entity; | |
+ (NSFetchRequest *)allFetchRequest; | |
+ (NSArray *)allObjects; | |
+ (NSUInteger)allObjectsCount; |
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
#import "NSManagedObject+NST.h" | |
@implementation NSManagedObject (NST) | |
+ (id)create { | |
NSEntityDescription *entityDecription = [self entity]; | |
NSString *name = [entityDecription name]; | |
return [NSEntityDescription insertNewObjectForEntityForName:name inManagedObjectContext:[self moc]] ; | |
} |
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 python | |
# -*- coding: UTF-8 -*- | |
"""Automates SMS sending from orange.ch, works on 2012-08-08""" | |
import requests # pip install requests | |
import re | |
import sys | |
def get_sun_query_params(): |
OlderNewer