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
#include <iostream> | |
// #define WINDOWS_OS //enable this line if you are using windows | |
#define INP cout << "Input : "; | |
using namespace std; | |
int x10(int x) { | |
// this func calculate 10 to ther power x | |
int n,m ; | |
m = 1; | |
if (x>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
#include <iostream> | |
#include <iomanip> | |
#include <cmath> | |
using namespace std; | |
int main() | |
{ | |
int m_upper; | |
double x,B = 0.0,den; | |
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
/*$T indentinput.cpp GC 1.140 08/10/13 01:51:37 */ | |
/* | |
* wxWidgets "Hello world" Program ; | |
* For compilers that support precompilation, includes "wx/wx.h". | |
*/ | |
#include <wx/wxprec.h> | |
#ifndef WX_PRECOMP | |
#include <wx/wx.h> | |
#endif |
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
using System; | |
using System.Threading; | |
namespace ThousandThreads | |
{ | |
class Thread1000 | |
{ | |
static void Main(string[] args) | |
{ | |
for (int i = 1; i <=1000; i++) |
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
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.scene.Node; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.ToolBar; | |
import javafx.scene.web.HTMLEditor; | |
import javafx.stage.Stage; |
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
import javafx.application.Application; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.scene.Node; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; | |
import javafx.scene.control.ToolBar; | |
import javafx.scene.web.HTMLEditor; | |
import javafx.scene.web.WebEngine; | |
import javafx.scene.web.WebView; |
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
import javafx.scene.image.Image; | |
import javax.imageio.ImageIO; | |
import java.awt.image.*; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
public Image getJavaFXImage(byte[] rawPixels, int width, int height) { | |
ByteArrayOutputStream out = new ByteArrayOutputStream(); | |
try { | |
ImageIO.write((RenderedImage) createBufferedImage(rawPixels, width, height), "png", 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
try { | |
InputStream is = this.getClass().getResourceAsStream( | |
"/classpath/dummy.png"); | |
ByteArrayOutputStream buffer = new ByteArrayOutputStream(); | |
int nRead; | |
byte[] data = new byte[16384]; | |
while ((nRead = is.read(data, 0, data.length)) != -1) { |
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
package jadogg.test; | |
import java.util.List; | |
import java.util.Optional; | |
import javafx.beans.property.SimpleStringProperty; | |
/** | |
* Coordinate Class | |
* @author jadogg | |
*/ |
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
import javafx.application.Application; | |
import javafx.beans.property.BooleanProperty; | |
import javafx.beans.property.SimpleBooleanProperty; | |
import javafx.event.*; | |
import javafx.scene.Node; | |
import javafx.scene.Scene; | |
import javafx.scene.control.*; | |
import javafx.scene.effect.BoxBlur; | |
import javafx.scene.input.MouseEvent; | |
import javafx.scene.layout.*; |
OlderNewer