$ npm i --save webpack webpack-cli webpack-dev-server bootstrap firebase jest history jquery react react-bootstrap react-dom react-helmet react-icons react-loadable react-router-dom redux redux-thunk sass
$ npm i --save-dev @types/node @types/react @types/react-dom @types/react-redux @types/react-router-dom @babel/core @babel/preset-env @babel/preset-es2017 babel-loader babel-plugin-transform-runtime css-loader file-loader mini-css-extract-plugin node-sass react-redux sass-loader style-loader ts-loader typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # --del <USERNAME> -g <GROUPNAME> | |
| # --add <USERNAME> -p <PASSWORD> -g <GROUPNAME> -d <DIR> | |
| echo -e "\e[1;35m########################\e[0m Outil de création d'utilisateur \e[1;35m########################\e[0m" | |
| actionAddUser(){ | |
| sudo adduser --disabled-password --gecos "" $1 | |
| echo -e "$1:$2" | chpasswd | |
| sudo mkdir /home/$1/$4 | |
| sudo groupadd $3 | |
| sudo usermod -aG $3 $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PS1='[\[\033[01;36m\]\u \[\033[00m\]](\[\033[01;31m\]\h\[\033[00m\] [\t])-> \[\033[01;36m\] \w \[\033[00m\] ' | |
| export PS1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // SSLPinningManager.swift | |
| // | |
| import Foundation | |
| import Security | |
| import CommonCrypto | |
| class SSLPinningManager: NSObject,URLSessionDelegate { | |
| static let shared = SSLPinningManager() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package test.example.store.models | |
| import android.os.Parcelable | |
| import kotlinx.parcelize.Parcelize | |
| @Parcelize | |
| data class Article(var title: String,var url: String,var type: Category):Parcelable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ReadByte.h" | |
| int main(int argc, const char * argv[]) { | |
| reader read; | |
| read.file_ptr = fopen(argv[1], "rb"); | |
| if(read.file_ptr == NULL) | |
| { | |
| fprintf(stderr, "cannot open input file\n"); | |
| return 1; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ListenerImpl @Inject constructor( | |
| val otherModule: OtherModule | |
| ) : Listener { | |
| override onClick(params: WhateverClass.Params){ | |
| super.onClick(params) | |
| otherModule.someCall(params) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public extension Bundle { | |
| // 1 | |
| static var apiKey: String? = { | |
| return Bundle.for(for: SpecificPodLib.self).infoDictionnary?[.apiKey] as? String | |
| }() | |
| // 2 | |
| static var apiKey: String? { | |
| return Bundle.for(for: SpecificPodLib.self).infoDictionnary?[.apiKey] as? String | |
| } | |
| // 3 |
OlderNewer