This file contains hidden or 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
# Maintainer: Josh Kropf <[email protected]> | |
# Contributor: Bartosz Chmura <chmurli at gmail dot com> | |
# Contributor: Mikkel Kroman <mk at maero dot dk> | |
LASTVER=`wget -q -O- http://www.sublimetext.com/dev | grep "<h2>Build " | head -n 1 | grep -Po '[0-9]+' | tail -n 2 | head -n 1` | |
pkgname=sublime-text-dev | |
pkgver=2.$LASTVER | |
pkgrel=1 | |
_build=$LASTVER |
This file contains hidden or 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
// for getpid, getppid | |
#include <sys/types.h> | |
#include <unistd.h> | |
// for memcpy | |
#include <string.h> | |
// for malloc | |
#include <stdlib.h> |
This file contains hidden or 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 <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/ipc.h> | |
#include <sys/msg.h> | |
#include <sys/wait.h> | |
#include <fcntl.h> | |
#include <unistd.h> |
This file contains hidden or 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
start: 1000 | |
#; задание: из массива А скопировать в массив В элементы которые удовлетворяют условию: | |
#; нечетное и делится на 5 | |
lxi h,1100 | |
lxi d,1200 | |
mov b,m |
This file contains hidden or 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
start: 1000 | |
#; задание: из массива А скопировать в массив В элементы которые удовлетворяют условию: | |
#; нечетное и делится на 5 | |
lxi h,1100 | |
lxi d,1200 | |
mov b,m |
This file contains hidden or 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
function [ptr,fval] = finmin( func, start, step, eps, varargin ) | |
nargs = length(varargin); | |
f_hl = matlabFunction(func); | |
grad = gradient(func); | |
max_iter = 400; | |
fin_dif = 0; | |
This file contains hidden or 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
start: 1000 | |
lxi h,1100 ; адрес начала массива с данными | |
mov b,m ; сохраняем значение первого элемента | |
inr L ; TODO переполнение | |
mov a,m |
This file contains hidden or 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
# Screen: (00, 00) -> (1F, 09) | |
# | |
# Directions: | |
# 00 - up | |
# 20 - down | |
# 40 - left | |
# 60 - right | |
# 80 - left up | |
# A0 - right up | |
# C0 - left down |
This file contains hidden or 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
start: 1000 | |
#; задание: из массива А скопировать в массив В элементы которые удовлетворяют условию: | |
#; нечетное и делится на 5 | |
lxi h,1100 | |
lxi d,1200 | |
mov b,m #; 1006 |
This file contains hidden or 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
def search_id(self, text): | |
for i, parent in enumerate(self.cats): | |
for j, sub in enumerate(parent.sub_rubs): | |
if sub.name == text: | |
return sub.id | |
if parent.name == text: | |
return parent.id |
OlderNewer