Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'example'

1413079 - Embedding Example: example embedding
  1. int main(void) {
  2.   int i;
  3.  
  4.   for(i = 0; i < 10; i++) {
  5.     printf("See? It's embedded! Oh, and hello world.");
  6.   }
  7.  
  8.   exit(0);
  9.  
1037923 - Qt 4 dynamic translation: i18n qt example dynamic translation
  1. MyWidget::MyWidget {
  2.     createWidgets();
  3.     retranslateInterface();
  4. }
  5.  
  6. void MyWidget::createWidgets() {
  7.     whatever = new MyCustomWidget(this);
  8. }
  9.  
1024294 - Example FlatPress plugin by i_pk: by plugin example flatpress i_pk_pjers_i
  1. <?php
  2. /*Sample FlatPress plugin coded by i_pk_pjers_i
  3. *Date: May 20, 2008
  4. *Reason:  Plugins4noobs
  5. *Installation: Save this file as plugin.badwords.php, make a folder called badwords in  fp-plugins,
  6. *and copy the file over to it, go into AdminCP, plugins, and enable the plugin.
  7. *FlatPress Plugins are simply functions, and using add_filter to call them, then enabling them in AdminCP
  8. */
  9.  
953002 - Example QC: hl2 gmod model example qc mdl
  1. $cd "Location of SMDs goes here (like C:/BoxModel/SMDs/)"
  2. $modelname "Folder and name of compiled model go here (like Makka12/BoxModel.mdl)"
  3. $model "Write anything you like here" "Name of SMD in SMDs folder goes here (like reference.SMD)"
  4. $surfaceprop "What the model is made of. Like cardboard or metal. (list is at hl2\scripts\surfaceproperties.txt if you really need it)"
  5. $cdmaterials "Location of VMT used for textures (like models\Makka12\BoxModel)"
  6. $sequence idle "Just put the name of the other SMD here (like reference)" fps 30.00
  7. $collisionmodel "Same as above (like reference.SMD)"
  8.  
  9.  
953000 - Example QC: hl2 gmod model example qc mdl
  1. $cd "Location of SMDs goes here (like C:/BoxModel/SMDs/)"
  2. $modelname "Folder and name of compiled model go here (like Makka12/BoxModel.mdl)"
  3. $model "Write anything you like here" "Name of SMD in SMDs folder goes here (like reference.SMD)"
  4. $surfaceprop "What the model is made of. Like cardboard or metal. (list is at hl2\scripts\surfaceproperties.txt if you really need it)"
  5. $cdmaterials "Location of VMT used for textures (like models\Makka12\BoxModel)"
  6. $sequence idle "Just put the name of the other SMD here (like reference)" fps 30.00
  7. $collisionmodel "Same as above (like reference.SMD)"
  8. {
  9.  
952999 - Example QC: hl2 gmod model example qc mdl
  1. $cd "Location of SMDs goes here (like C:/BoxModel/SMDs/)"
  2. $modelname "Folder and name of compiled model go here (like Makka12/BoxModel.mdl)"
  3. $model "Write anything you like here" "Name of SMD in SMDs folder goes here (like reference.SMD)"
  4. $surfaceprop "What the model is made of. Like cardboard or metal. (list is at
  5.  
  6. hl2\scripts\surfaceproperties.txt if you really need it)"
  7. $cdmaterials "Location of VMT used for textures (like models\Makka12\BoxModel)"
  8. $sequence idle "Just put the name of the other SMD here (like reference)" fps 30.00
  9.  
952997 - Example QC: hl2 gmod model example qc mdl
  1. $cd "Location of SMDs goes here (like C:/BoxModel/SMDs/)"
  2. $modelname "Folder and name of compiled model go here (like Makka12/BoxModel.mdl)"
  3. $model "Write anything you like here" "Name of SMD in SMDs folder goes here (like
  4.  
  5. reference.SMD)"
  6. $surfaceprop "What the model is made of. Like cardboard or metal. (list is at
  7.  
  8. hl2\scripts\surfaceproperties.txt if you really need it)"
  9.  
737680 - MMOE Nightly - Window Widget: mmoe nightly preview example
  1. var w = new Window({
  2.         caption: 'About MMOE',
  3.         size:    [400, 200],
  4.         contents: 'MMOE stands for Massively-Multiplayer Open-Source Engine, and is freely available '+
  5.         'for download  as builds or source code. This is the the MMOE Web Client, which tries to emulate ' +
  6.         'traditional desktop-application behavior and usability, which can allow MMOE developers to create ' +
  7.         'exciting applications or games.',
  8.  
  9.  
737678 - MMOE Nightly - Menu Widget: mmoe nightly preview example
  1. riseOrFall.Menu.build({
  2.                         File:   {
  3.                                 items: {
  4.                                         Disconnect: {},
  5.                                         Exit: {
  6.                                                 onclick: function(){
  7.                                                         document.close();
  8.                                                         location.href = "about:blank";
  9.  
737677 - MMOE Nightly - Menu Widget: mmoe nightly preview example
  1. riseOrFall.Menu.build({
  2.                         File:   {
  3.                                 items: {
  4.                                         Disconnect: {},
  5.                                         Exit: {
  6.                                                 onclick: function(){
  7.                                                         document.close();
  8.                                                         location.href = "about:blank";
  9.  
worth-right worth-right