A minimum viable Fabric-UI React app with Parcel Bundler
What's inside?
parcel-bundlerreactreact-domoffice-ui-fabric-react
| -- BTOA Encode the text string | |
| SELECT CAST(N'' AS XML).value( | |
| 'xs:base64Binary(xs:hexBinary(sql:column("bin")))', | |
| 'VARCHAR(MAX)' | |
| ) Base64Encoding | |
| FROM ( | |
| SELECT CAST('StoredValue=' + CAST(1213 as VARCHAR(30)) + '' AS VARBINARY(MAX)) AS BIN) | |
| AS EncryptedStudentId; | |
| -- ATOB Decode the Base64-encoded string |
| /// <summary> | |
| /// ''' Class to Encrypt and Decrypt From APS previous Version. | |
| /// </summary> | |
| public sealed class EncryptDecrypt | |
| { | |
| private EncryptDecrypt() | |
| { | |
| } | |
| // Encrypts specified plaintext using Rijndael symmetric key algorithm |
A minimum viable Fabric-UI React app with Parcel Bundler
What's inside?
parcel-bundlerreactreact-domoffice-ui-fabric-react| { | |
| "presets": [ "es2015-rollup", "react" ], | |
| "plugins": [ "external-helpers", "transform-decorators-legacy" ] | |
| } |
| const unique_incr = () => | |
| ('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/1|0/g, function() { | |
| return (0 | (Math.random() * 16)).toString(16) | |
| }) | |
| const STORAGE_KEY = 'todos'; | |
| var fetch = () => JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]') | |
| var save = todos => localStorage.setItem(STORAGE_KEY, JSON.stringify(todos)) | |
| var state = { todos: [] } |
| GO | |
| /****** Object: UserDefinedFunction [dbo].[ValidateNRIC] Script Date: 08/29/2018 5:24:04 PM ******/ | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| -- ============================================= | |
| -- Author: <Murali, [email protected]> | |
| -- Create date: <2018-04-28 17:30:50.723> | |
| -- Description: <Function validates the supplied NRIC string> |
| # Boilerplate structure for React TypeScript and Rollup | |
| A boilerplate to develop react apps and components with TypeScript and Rollup | |
| ## Getting Started | |
| ```bash | |
| npm init -y | |
| ``` |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| function GenerateMAC(){ | |
| var hexDigits = "0123456789ABCDEF"; | |
| var macAdd = ""; | |
| for (var i = 0; i < 6; i++) { | |
| macAdd += hexDigits.charAt(Math.round(Math.random() * 15)); | |
| macAdd += hexDigits.charAt(Math.round(Math.random() * 15)); | |
| if (i != 5) macAdd += ":"; | |
| } | |
| return macAdd; |