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
/* Inference for Llama-2 Transformer model in pure C */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
#include <time.h> | |
#include <math.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#if defined _WIN32 |
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
# src - source file extension | |
# trg - target file extension | |
for i in *.src; do mv "$i" "${i/\.src/\.tgt}"; done |
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.lua | |
-- | |
----------------------------------------------------------------------------------------- | |
-- Your code here | |
local json = require( "json" ) | |
local cx = display.contentCenterX |
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
&НаСервере | |
Процедура ПолучитьДанныеНавиадресаНаСервере() | |
Сервер = "staging-api.naviaddress.com"; | |
Версия = "1.5"; | |
Контейнер = "7"; | |
Навиадрес = Объект.Навиадрес; | |
АдресРесурса = СтрШаблон("/api/v%1/Addresses/%2/%3", Версия, Контейнер, Навиадрес); | |
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
<body> | |
<h1>Ближайший навиадрес</h1> | |
<p>Пример программы для получения информации о ближайшем объекте</p> | |
<div id="coords"></div> | |
<div id="naviaddress"></div> | |
<div id="postal"></div> | |
<div id="list"></div> | |
<script> |
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
<video autoplay="" loop="" style="width: 100%; height: inherit; background: rgb(0, 0, 0);"> | |
<source type="video/ogg" src="upload/BlocksPagesProperties/video_ogv/3ecdfc303ec3600045e0be1624e38ccd.ogv"> | |
</video> |
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
function copy(o) { | |
var out, v, key; | |
out = Array.isArray(o) ? [] : {}; | |
for (key in o) { | |
v = o[key]; | |
out[key] = (typeof v === "object") ? copy(v) : v; | |
} | |
return out; | |
} |
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
%lex | |
%option case-insensitive | |
%s mulcom onecom | |
%% | |
<<EOF>> return 'EOF' | |
<INITIAL>"/*" this.begin('mulcom'); return | |
<mulcom>"*/" this.popState(); return |
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
function inherit(child, parent) { | |
child.prototype = Object.create(parent.prototype); | |
child.prototype.constructor = child; | |
child.prototype.super = function () { | |
parent.apply(this,arguments); | |
}; | |
}; | |
// How to use: |
NewerOlder