This file contains 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 de.reimerm.hammerize; | |
import com.badlogic.gdx.graphics.OrthographicCamera; | |
import com.badlogic.gdx.scenes.scene2d.Stage; | |
import com.badlogic.gdx.utils.Scaling; | |
import com.badlogic.gdx.utils.viewport.ScalingViewport; | |
/** | |
* Created by Marius Reimer on 15-Sep-16. | |
*/ |
This file contains 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 com.hmack.hammerize.utils; | |
import com.badlogic.gdx.assets.AssetManager; | |
import com.badlogic.gdx.graphics.g2d.Animation; | |
import com.badlogic.gdx.graphics.g2d.TextureAtlas; | |
import com.badlogic.gdx.graphics.g2d.TextureRegion; | |
import java.util.HashMap; | |
/** |
This file contains 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
final BluetoothManager manager = BluetoothManager.getBluetoothManager(); | |
manager.startDiscovery () ; | |
for (BluetoothDevice device : manager.getDevices()) { | |
if (Arrays . asList ( device .getUUIDs()).contains(”be15beef−6186−407e−8381−0bd89c4d8df4”)) { | |
// device is of anki overdrive | |
} | |
} | |
manager.stopDiscovery(); |
This file contains 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
pragma solidity ^0.4.24; | |
import "zeppelin-solidity/contracts/ownership/Ownable.sol"; | |
/// @title Contract Example for a storing names | |
/// @author Marius Reimer (reime005) <reime005@gmail.com> | |
/// @notice | |
/// @dev This is the core contract | |
contract NameStorageExample is Ownable { | |
string public contractName; |
This file contains 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
const runYarnLock = 'yarn install --frozen-lockfile'; | |
module.exports = { | |
hooks: { | |
'post-checkout': `if [[ $HUSKY_GIT_PARAMS =~ 1$ ]]; then ${runYarnLock}; fi`, | |
'post-merge': runYarnLock, | |
'post-rebase': 'yarn install', | |
'pre-commit': 'yarn test && yarn lint-staged' | |
} | |
}; |
This file contains 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
module.exports = { | |
'*.{js,jsx}': [ | |
'eslint . --fix', | |
'prettier --write', | |
'git add', | |
'jest --bail --findRelatedTests' | |
] | |
}; |
This file contains 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
foo(); // works because hoisted | |
var someVariable = 42; | |
// would not be hoisted: var foo = function() ... | |
function foo() { | |
console.log(someVariable); // undefined | |
var someVariable = 91; | |
console.log(someVariable); // 91 | |
} |
This file contains 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
fooFunction(); // ReferenceError: fooFunction is not defined | |
foo(); // TypeError: undefined is not a function | |
var foo = function fooFunction() { console.log(42) }; |
This file contains 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/sh | |
autoload -U add-zsh-hook | |
add-zsh-hook -Uz chpwd (){ ls -a; } |
This file contains 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/sh | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export ANDROID_SDK=$ANDROID_HOME | |
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle | |
export PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/emulator |
OlderNewer