What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-18 06:57:05
how to draw flower petals around circle javascript
size(400, 400); background(#ffffff); smooth(); // set centre point translate(width/2, height/2); // centre circle ellipse(0, 0, 50, 50); // draw 5 petals, rotating after each one for (int i = 0; i < 5; i++) { ellipse(0, -50, 50, 50); rotate(radians... Add solution -
Go 2021-10-18 04:23:09
how to make enemy go in one direction unity 2d
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyPatrol : MonoBehaviour { public float speed; public float distance; private bool movingRight = true; public Transform groundDetection; ... Add solution -
Python 2021-10-17 02:12:09
python to c++ compiler
# Note: The last time I tested something was missing so I couldn't work import pathlib import transpyle path = pathlib.Path('my_script.py') code_reader = transpyle.CodeReader() code = code_reader.read_file(path) from_language = transpyle.Language.find('... Add solution -
C++ 2021-10-15 11:17:08
python to c++ transpiler
# Note: The last time I tested something was missing so I couldn't work import pathlib import transpyle path = pathlib.Path('my_script.py') code_reader = transpyle.CodeReader() code = code_reader.read_file(path) from_language = transpyle.Language.find('... Add solution -
Other 2021-10-15 08:41:04
word level text generation keras
import string # load doc into memory def load_doc(filename): # open the file as read only file = open(filename, 'r') # read all text text = file.read() # close the file file.close() return text # turn a doc into clean tokens def clean... Add solution -
Python 2021-10-13 22:02:03
how to save a nonetype as a function in python
import sys, math, Image import os def Distance(p1,p2): dx = p2[0] - p1[0] dy = p2[1] - p1[1] return math.sqrt(dx*dx+dy*dy) def ScaleRotateTranslate(image, angle, center = None, new_center = None, scale = None, resample=Image.BICUBIC): if (scale ... Add solution -
Python 2021-10-09 10:04:03
python google translate csv
import pandas as pd from google_trans_new import google_translator translator = google_translator() translate_text = translator.translate('Hola mundo!', lang_src='es', lang_tgt='en') df = pd.read_csv('./my_file.csv') translations = [] unique_eleme... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5