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 main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "github.com/go-zoo/bone" | |
| ) | |
| func 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
| $ redis-cli | |
| > config set stop-writes-on-bgsave-error no |
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
| // Don't forget to add Palette library to your build.gradle | |
| // compile 'com.android.support:palette-v7:+' | |
| public static int getDominantColor(Bitmap bitmap) { | |
| List<Palette.Swatch> swatchesTemp = Palette.from(bitmap).generate().getSwatches(); | |
| List<Palette.Swatch> swatches = new ArrayList<Palette.Swatch>(swatchesTemp); | |
| Collections.sort(swatches, new Comparator<Palette.Swatch>() { | |
| @Override | |
| public int compare(Palette.Swatch swatch1, Palette.Swatch swatch2) { | |
| return swatch2.getPopulation() - swatch1.getPopulation(); |
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
| window.Event = { | |
| vue: new Vue(), | |
| on: function(event, callback){ | |
| this.vue.$on(event, callback); | |
| }, | |
| fire: function(event, data){ | |
| this.vue.$emit(event, data); |
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
| <?php | |
| function get_private_key_for_public_key($public_key) { | |
| // extract private key from database or cache store | |
| return 'private_key_user_id_9999'; | |
| } | |
| // Data submitted | |
| $data = $_GET['data']; | |
| $data = json_decode(stripslashes($data), TRUE); |
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
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| Version: SKS 1.1.6 | |
| Comment: Hostname: gpg.NebrWesleyan.edu | |
| mQENBFoXLK4BCAD1yPex8TgzEd9zKLHZdwMrxjttLw95+tchuqfvaX8o2OutTFH8y99FAbVn | |
| rXacPGNcUaL9lqbqdJgcez6ie0yWjLSlqcsPXkz07lvB3Ebmh38mFnKv/knGnw3W9uUNmmIj | |
| rfoVGt72kXOfRWUZR8XviuB/c4XEAPazWY+4ILokIrLL6UooPvIeWl5jbPA0EaYztSe9uV/+ | |
| T7gc8T/N6ruP97fGyUgltb1/BfJFWX76pmHAQb6hxV0dBJGF+5W1HX/f4IRc4Cn9iOw1J2GN | |
| 71bLX41R7Q+EGhGQ9Z94+GlnUMPyCODhq5uHfrNnEx3wkTpu4eXpt++ho9GqgcMQDR4/ABEB | |
| AAG0Jk1yLiBBYmRlbGF6aXogRWxyYXNoZWQgPGFlZW1oQGFvbC5jb20+iQEcBBABCgAGBQJa |
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
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:795188067a8ac283c8a0c32ebe6ceed9e8b93a49] |
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
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:795188067a8ac283c8a0c32ebe6ceed9e8b93a49] |
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
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:795188067a8ac283c8a0c32ebe6ceed9e8b93a49] |
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
| This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
| Token for proof: | |
| [Verifying my OpenPGP key: openpgp4fpr:795188067a8ac283c8a0c32ebe6ceed9e8b93a49] |