Skip to content

Instantly share code, notes, and snippets.

package sweetlyna;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.StrictMode;
import android.provider.MediaStore;
import android.util.Base64;
program ico;
uses
Windows,
Messages,
SysUtils,
CommDlg,
ShellAPI,
WinProcs;
from json import loads
from os import uname, stat
from re import sub
from urllib.error import HTTPError
from urllib.parse import urlencode
from base64 import b64encode
from sys import argv, version
from urllib.request import urlopen, Request
headers = {
float x;
void setup() {
size(600,600,P3D);
}
void draw() {
x+=0.1;
background(#A75E0F);
stroke(0);
translate(300,300);
rotateX(PI/3);
float x;
float a=150;
float b=150;
float da=1;
float db=2;
void setup() {
size(600,600,P3D);
}
void draw() {
x+=0.1;
#include<iostream>
using namespace std;
int main() {
double a[3][3];
double b[3];
for (int i=1; i<4; i++) {
for (int j=1; j<4; j++) {
cout << "Enter left side coeficients" << endl;
cout << "a[" << i << "," << j << "]=";
cin >> a[i][j];
#include <Windows.h>
#define width 640
#define height 480
LRESULT CALLBACK WindowProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
WNDCLASSEX windowClass;
HWND hWnd;
1
2
3
4
5
6
7
8
9
0
PFont font;
float a;
float b;
void setup () {
font = createFont("Consolas", 14);
textFont(font);
size(600,600);
}
void draw () {
textSize(45);
float a;
float b;
void setup() {
size (600,600);
}
void draw () {
a=random(300);
b=random(300);
background(120);
pushMatrix();