What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-04 16:38:02
unity application.reload
#Modifying your scripts to perform correctly when Domain Reload is disabled: using UnityEngine; public class StaticCounterExample : MonoBehaviour { // this counter will not reset to zero when Domain Reloading is disabled static int counter = 0; ... Add solution -
PHP 2021-09-04 14:37:03
file_put_contents alternative php
<?php // this is an alternative for file_get_contents // using Curl > function url_get_contents ($Url) { if (!function_exists('curl_init')){ die('CURL is not installed!'); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ... Add solution -
Javascript 2021-09-04 11:35:03
angular google maps
Step 1: Creating new project Create a new project using command ng new gmaps-ng5 Step 2: Install Google Maps types for typescript support. Run command npm install --save @types/googlemaps Step 3: Link Google Maps JavaScript CDN inside index.html <scrip... Add solution -
Python 2021-09-03 09:41:03
2d grid python pygame
import pygame BLACK = (0, 0, 0) WHITE = (200, 200, 200) WINDOW_HEIGHT = 400 WINDOW_WIDTH = 400 pygame.init() SCREEN = pygame.display.set_mode((WINDOW_HEIGHT, WINDOW_WIDTH)) CLOCK = pygame.time.Clock() SCREEN.fill(BLACK) def draw_grid(): block_siz... Add solution -
PHP 2021-09-02 18:27:02
currency convertor in php
<?php /////for current update currency using api///// $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.exchangeratesapi.io/latest?base=USD", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING =>... Add solution -
Python 2021-08-31 17:37:02
draw image pygame
import pygame as pg pg.init() screen = pg.display.set_mode((display_width,display_height)) # load the image in with file name yourImg = pg.image.load('yourImg.png') def showImg(x,y): # pass the image and x,y values to screen screen.blit(yourImg,... Add solution -
Python 2021-08-31 00:40:01
pygame tutorial
# To install pygame, type 'pip install pygame' in the # windows powershell or the os terminal # To create a blank screen as a setup for a game, use: import pygame import sys pygame.init() clock = pygame.time.Clock() FPS = 30 # How many times the scre... Add solution -
Other 2021-08-29 18:50:02
curl upload file
if (function_exists('curl_file_create')) { // php 5.5+ $cFile = curl_file_create($file_name_with_full_path); } else { // $cFile = '@' . realpath($file_name_with_full_path); } $post = array('extra_info' => '123456','file_contents'=> $cFile); $ch... Add solution