What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-29 02:49:02
fractal tree python
import pygame, math pygame.init() screen = pygame.display.set_mode((750, 650)) pygame.display.set_caption("Fractal Tree") display = pygame.display.get_surface() def drawTree(a, b, pos, deepness): if deepness: c = a + int(math.cos(math.radians(... Add solution -
C++ 2021-08-29 02:47:01
c++ calculator script
#include <iostream> using namespace std; int main() { cout << "Welcome to the Calculator, write :cancel: to cancel the calculator\n"; string cancel; while(cancel != "cancel") { int number1 = 0; int number2 =... Add solution -
Shell/Bash 2021-08-29 01:03:01
ubuntu spotify
#On ubuntu can just type following command: snap install spotify #if that not works you can also try to install the debian package #you will need for this 'curl' so install that first sudo apt install curl #after installing curl or you already have instal... Add solution -
Shell/Bash 2021-08-28 22:56:02
adb shell grep command
#Gets screen capture of device every 270 seconds and outputs screencap to timestamped png file in local directory while true; do adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ScreenCap.`date +%Y`.`date +%m`.`date +%d`-`date +%H`.`date +%M`.... Add solution -
Other 2021-08-28 17:22:01
method overloading in framework
Method overloading is providing two separate methods in a class with the same name but different arguments, while the method return type may or may not be different, which allows us to reuse the same method name. In my framework== I use implicit wait i... Add solution -
Other 2021-08-28 15:23:01
loading screen batch file
@echo off setlocal enableextensions enabledelayedexpansion Rem Get a carriage return character set "CR=" & for /f %%a in ('copy /Z "%~f0" nul') do if not defined CR set "CR=%%a" rem The progress bar s... Add solution -
Shell/Bash 2021-08-28 14:05:01
bash eval variable
Just use eval command for running string output. As for example: eval $cmd #execute command included in string value of $cmd variable Or for a more sophisticated use run commands stored in lines of a file: cat commands_file.txt | while read line; do eva... Add solution -
C# 2021-08-28 09:05:01
press button with and have confirm unity
IEnumerator PlaceBuilding() { // whatever you're doing now with the temporary / placement preview building ConfirmationDialog dialog = ShowConfirmationDialog(); // instantiate the UI dialog box while(dialog.result == DialogResult.None) ... Add solution
Best helpers
Ranking is empty