Skip to content

Instantly share code, notes, and snippets.

View peterlazar1993's full-sized avatar

Peter Lazar peterlazar1993

  • Limehome
  • Munich, Germany
View GitHub Profile
export default class Practice extends Component {
render() {
return (
<Card style={styles.card}>
<Card.Body>
<Text style={[TYPO.paperFontHeadline, COLOR.paperCyan500, { marginVertical: 5 }]}>
Hey {this.props.userName},
</Text>
<View style={{ marginVertical: 5 }}>
<Text style={[TYPO.paperFontBody1]}>Good Evening :)</Text>
@peterlazar1993
peterlazar1993 / apidev headers
Last active April 17, 2017 18:34
response headers from apidev instance
Date: Mon, 17 Apr 2017 18:27:56 GMT
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 10:00:00 GMT
Content-Disposition: attachment; filename="BBE%20Hydro%20Constructors%20LP-Keeyask-2017-04-05-15-36-49-293.zip"; filename*=UTF-8''BBE%20Hydro%20Constructors%20LP-Keeyask-2017-04-05-15-36-49-293.zip
Content-Type: application/octet-stream;
Set-Cookie: ASESSIONID=""; Path=/
Set-Cookie: ASDSESSIONID=""; Domain=.apidev.aconex.com; Path=/
Vary: Accept-Encoding,User-Agent
@peterlazar1993
peterlazar1993 / US headers
Created April 17, 2017 18:35
response headers from US instance
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 19:00:00 EST
Content-Disposition: attachment; filename="BBE%20Hydro%20Constructors%20LP-Keeyask-2017-04-05-15-36-49-293.zip"; filename*=UTF-8''BBE%20Hydro%20Constructors%20LP-Keeyask-2017-04-05-15-36-49-293.zip
Content-Type: application/octet-stream;
Date: Mon, 17 Apr 2017 18:33:55 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
fastlane ios beta
[16:04:18]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[16:04:20]: -------------------------------------------------
[16:04:20]: --- Step: Verifying required fastlane version ---
[16:04:20]: -------------------------------------------------
[16:04:20]: Your fastlane version 2.60.0 matches the minimum requirement of 2.59.0 ✅
[16:04:20]: ------------------------------
[16:04:20]: --- Step: default_platform ---
[16:04:20]: ------------------------------
[16:04:20]: Driving the lane 'ios beta' 🚀
fastlane android beta
[16:07:47]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[16:07:50]: -------------------------------------------------
[16:07:50]: --- Step: Verifying required fastlane version ---
[16:07:50]: -------------------------------------------------
[16:07:50]: Your fastlane version 2.60.0 matches the minimum requirement of 2.59.0 ✅
[16:07:50]: ------------------------------
[16:07:50]: --- Step: default_platform ---
[16:07:50]: ------------------------------
[16:07:50]: Driving the lane 'android beta' 🚀
@peterlazar1993
peterlazar1993 / layoutAnimationConfig.js
Created December 8, 2017 07:42
layoutAnimationConfig
export const configLayoutAnimation = () =>
Platform.OS === 'ios'
? LayoutAnimation.easeInEaseOut()
: LayoutAnimation.configureNext({
duration: 300,
create: {
type: LayoutAnimation.Types.easeInEaseOut,
property: LayoutAnimation.Properties.opacity,
},
update: { type: LayoutAnimation.Types.easeInEaseOut },
ActivityThread E Service guichaguri.trackplayer.logic.services.PlayerService has leaked IntentReceiver guichaguri.trackplayer.metadata.components.NoisyReceiver@4eb4673 that was originally registered here. Are you missi
ng a call to unregisterReceiver()?
E android.app.IntentReceiverLeaked: Service guichaguri.trackplayer.logic.services.PlayerService has leaked IntentReceiver guichaguri.trackplayer.metadata.components.NoisyReceiver@4eb4673 that was origina
lly registered here. Are you missing a call to unregisterReceiver()?
E at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1333)
E at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1114)
E at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1405)
E at android.app.ContextImpl.registerReceiver(ContextImpl.java:1378)

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@peterlazar1993
peterlazar1993 / machine.js
Last active January 4, 2022 07:27
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@peterlazar1993
peterlazar1993 / node
Created January 22, 2023 17:21
script as alias for node to use node via nvm
#!/usr/bin/env sh
# Use the version of node specified in .nvmrc to run the supplied command
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm_rc_version > /dev/null 2> /dev/null
HAS_NVM_RC=$?
if [[ "$HAS_NVM_RC" == "0" ]] ; then