What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-08-29 18:59:02
encrypt/decrypt data php
function encrypt_decrypt($string, $action = 'encrypt') { $encrypt_method = "AES-256-CBC"; $secret_key = 'AA74CDCC2BBRT935136HH7B63C27'; // user define private key $secret_iv = '5fgf5HJ5g27'; // user define secret key $key = hash(... Add solution -
Javascript 2021-08-29 18:35:02
checkbox default value and checked value get in jquery
//selected checkbox alert boolen value return $('#test').click(function() { alert("Checkbox state (method 1) = " + $('#test').prop('checked')); alert("Checkbox state (method 2) = " + $('#test').is(':checked')); }); <script s... Add solution -
Shell/Bash 2021-08-29 17:32:02
Cannot find module 'typescript'
# NPM Installation Method npm install --global typescript # Global installation npm install --save-dev typescript # Local installation #Yarn Installation Method yarn global add typescript # Global installation yarn add --dev typescript # Local installation Add solution -
-
Python 2021-08-29 17:08:03
download python for 32-bit windows 7
# Python downloads IDLE on default when it's installed. # So you already should have it, but in case you don't, then: # Reinstall python and make sure you tick the box that says "Install IDLE" or something like that Add solution -
Other 2021-08-29 16:49:01
auth guard
// src/app/auth/auth.service.tsimport { Injectable } from '@angular/core';import { JwtHelperService } from '@auth0/angular-jwt';@Injectable()export class AuthService { constructor(public jwtHelper: JwtHelperService) {} // ... public isAuthenticated(): ... Add solution -
Shell/Bash 2021-08-29 16:41:01
bash remove duplicate lines from a file
# Basic syntax: sort input_file | uniq --unique # Sort the file first because uniq requires a sorted file to work. Uniq # then eliminates all duplicated lines in the file, keeping one instance # of each duplicated line # Note, this doesn't return only no... Add solution