Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device
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
| # -fobjc-arc: enables ARC | |
| # -fmodules: enables modules so you can import with `@import AppKit;` | |
| # -mmacosx-version-min=10.6: support older OS X versions, this might increase the binary size | |
| clang main.m -fobjc-arc -fmodules -mmacosx-version-min=10.6 -o main |
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
| #ifdef SHELL | |
| g++ -Wall -Werror -g -I../../cclib/rapidjson/include $0 && ./a.out | |
| exit 0 | |
| #endif | |
| // Output is: | |
| // {"project":"rapidjson","stars":11} | |
| // {"Name":"XYZ","Rollnumer":2,"array":["hello","world"],"Marks":{"Math":"50","Science":"70","English":"50","Social Science":"70"}} | |
| // {"FromEmail":"[email protected]","FromName":"Sender's name","Subject":"My subject","Recipients":[{"Email":"[email protected]"}],"Text-part":"this is my text"} |
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
| $RegKey = (Get-ItemProperty 'HKCU:\Volatile Environment') | |
| $RegKey.PSObject.Properties | ForEach-Object { | |
| If($_.Name -like '*View*'){ | |
| Write-Host $_.Name ' = ' $_.Value | |
| } | |
| } |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
| Description | Syntax |
|---|---|
| Get the length of a string | ${#VARNAME} |
| Get a single character | ${VARNAME[index]} |
OlderNewer