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 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 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 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 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
| 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 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
| 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 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
| module.exports = { | |
| '*.{js,jsx}': [ | |
| 'eslint . --fix', | |
| 'prettier --write', | |
| 'git add', | |
| 'jest --bail --findRelatedTests' | |
| ] | |
| }; |
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
| 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 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
| fooFunction(); // ReferenceError: fooFunction is not defined | |
| foo(); // TypeError: undefined is not a function | |
| var foo = function fooFunction() { console.log(42) }; |
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/sh | |
| autoload -U add-zsh-hook | |
| add-zsh-hook -Uz chpwd (){ ls -a; } |
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/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 |
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/sh | |
| # note that the $ANDROID_HOME/tools/bin folder must be in your PATH | |
| # list all installed and available packages | |
| exec sdkmanager --list | |
| # install or update specific packages to the latest version. automatically accept licenses | |
| exec yes | sdkmanager --licenses && \ | |
| sdkmanager "platforms;android-28" "build-tools;28.0.3" |
OlderNewer