Skip to content

Instantly share code, notes, and snippets.

import random
MIN_ARRAY_LENGTH = 1
MAX_ARRAY_LENGTH = 50
MIN_NUM = 0
MAX_NUM = 100
# Uses python3
def max_mult(a,n):
if n < 1:
#include <LPC23xx.H>
#include <string.h>
#include <stdlib.H>
int interrupts_count = -2;
int i = 0;
static unsigned const kStrSize = 15;
char star_group = 'u';
UIAlertController* <#alert#> = [UIAlertController alertControllerWithTitle:<#name#>
message:<#message#>
preferredStyle:<#UIAlertControllerStyleAlert#>];
void (^<#handler#>)(UIAlertAction * action) = ^(UIAlertAction * action){
};
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:<#@"OK"#> style:<#UIAlertActionStyleDefault#>
handler:<#handler#>];
([a-zA-zа-яА-Я]{2,})+([ '-]([a-zA-Zа-яА-Я]{2,})+)*$
func handleTap(sender: UITapGestureRecognizer? = nil) {
var indexPath: NSIndexPath!
if let label = sender?.view as? UILabel
{
if let superview = label.superview {
if let cell = superview.superview as? UICollectionViewCell {
indexPath = wordBuilder.indexPathForCell(cell)
}
//
// SLExpandableTableViewController.m
// SLExpandableTableViewTests
//
// Created by Oliver Letterer on 19.02.14.
// Copyright 2014 Sparrow-Labs. All rights reserved.
//
#import "SLExpandableTableViewController.h"
#import "SLExpandableTableViewControllerHeader.h"
//
// testmain.c
// Lab1Test
//
// Created by Amin Benarieb on 13/09/15.
// Copyright © 2015 Amin Benarieb. All rights reserved.
//
// Модульные тесты
#include <stdio.h>
//
// module.c
//
//
// Created by Amin Benarieb on 13/09/15.
//
//
#include "module.h"
@aminbenarieb
aminbenarieb / main.c
Last active September 13, 2015 20:30
//
// main.c
// Lab1
//
// Created by Amin Benarieb on 08/09/15.
// Copyright (c) 2015 Amin Benarieb. All rights reserved.
//
/*
Требования:
• Написать программу, которая считывает из текстового файла целые числа в массив и выполняет обработку этого массива