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
NSMutableArray *athletesTemp = [[NSMutableArray alloc] init]; | |
self.athletes = athletesTemp; | |
[athletesTemp release]; |
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
-- cancello la load unit e azzero l'id autoincrementante | |
delete from dtLu where pLu > 0 | |
DBCC CHECKIDENT ('dtLu', RESEED,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
-- attivo l'identity manuale | |
SET IDENTITY_INSERT dtBtc ON | |
-- inserisco | |
insert into dtBtc (pBtc, sBtc, pBtcStt) | |
values ( 0, '...', 0 ) | |
-- tolgo l'identity manuale | |
SET IDENTITY_INSERT dtBtc OFF |
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
// salvo su db | |
sqlite3_bind_double(updateStatement, 5, [[person birthdate] timeIntervalSince1970]); | |
// leggo da db | |
person.birthdate = [NSDate dateWithTimeIntervalSince1970:sqlite3_column_double(selectStatement, 5)]; |
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
public float RayTrace(Vector3 position) | |
{ | |
Vector3 start = position; | |
Vector3 end = position; | |
start.z = start.z + 20F; | |
end.z = end.z - 20F; | |
BasicRaycast ray = new BasicRaycast(m_World, start, end); | |
if (ray.FirstHit != null) | |
{ |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
material grsDS | |
{ | |
lod_values 0.1 2 | |
diffuse 1 1 1 1 | |
specular 0 0 0 0 1 | |
ambient 1 1 1 | |
emissive 0 0 0 | |
scene_blend default |
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
void Render::initShiny() | |
{ | |
/// material factory setup | |
sh::OgrePlatform* platform = new sh::OgrePlatform("General", sBasePath + "data/common"); | |
platform->setCacheFolder(PATHMANAGER::GetCacheDir()); | |
mFactory = new sh::Factory(platform); | |
sh::Factory& fct = sh::Factory::getInstance(); | |
fct.setReadSourceCache (true); |
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
macroScript TestMaterial category:"ghiboz" | |
( | |
materialID = 1 | |
print '-------------------' | |
for materialID=1 to meditmaterials.count do | |
( | |
if (classof meditMaterials[materialID] == Standardmaterial) then | |
( | |
if (meditMaterials[materialID] != undefined) then | |
( |
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
macroScript WeldSmooth category:"ghiboz" | |
( | |
for o in selection do | |
( | |
if( isKindOf o GeometryClass ) then -- weld only in geometry objects | |
( | |
if classof o.baseObject == Editable_Mesh then | |
( | |
print o.name | |
meshOp.weldVertsByThreshold o.mesh o.mesh.verts 0.001 |
OlderNewer