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
// store and display a histogram | |
// input = [1, 2, 3, 4, 5, 10, 11, 11] | |
// bin_size = 5 | |
// first bin [1, 2, 3, 4] -> 4 | |
// second bin [5] -> 1 | |
// ... | |
// 0 | #### | |
// 5 | # |
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
/* | |
https://cataas.com/cat/says/te | |
*/ | |
class CatSearch extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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
alias.co=checkout | |
alias.st=status | |
alias.local=for-each-ref --sort=committerdate refs/heads/ --format='%(color: red)%(committerdate:short) %(color: cyan)%(refname:short)' | |
alias.trash=stash save -u trash | |
alias.update=!git fetch origin develop && git rebase origin/develop | |
user.name=Jr | |
user.email=jr@example.com |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
## Links | |
* https://apple.stackexchange.com/questions/267581/gpu-problem-boot-hangs-on-grey-screen/295805#295805 | |
* https://forums.macrumors.com/threads/force-2011-macbook-pro-8-2-with-failed-amd-gpu-to-always-use-intel-integrated-gpu-efi-variable-fix.2037591/ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.parent { | |
border: 2px solid #888; | |
/* height: 124px; */ /* DOTH it works */ |
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
<?php | |
function mysql_real_escape_string($str) { | |
return $str; | |
} | |
function mysql_query($sql) { | |
return mysqli_query(Mysql::$link, $sql); | |
} | |
function mysql_fetch_assoc($result) { |
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
## arrow up | |
"\e[A":history-search-backward | |
## arrow down | |
"\e[B":history-search-forward | |
## Found here: https://askubuntu.com/questions/59846/bash-history-search-partial-up-arrow |
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
diff --git a/Podfile b/Podfile | |
index c41dae5..9b4235b 100644 | |
--- a/Podfile | |
+++ b/Podfile | |
@@ -25,14 +25,6 @@ pod 'MediaLibraryKit-unstable' | |
pod 'MobileVLCKit-unstable', '3.0.0a10' | |
end | |
-post_install do |installer_representation| | |
- installer_representation.pods_project.build_configurations.each do |config| |
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
# 1. List all the daemons running on you mac that are not published by apple. | |
# Search on google any name that you do not trust. | |
# MacKeeper has at least one with a strange name. | |
launchctl list | grep -v com.apple | |
# 2. Remove all the suspecious daemons. | |
# You won't be able to simply kill -9, they all restart each other and redownload themselves. | |
launchctl remove com.malware.something | |
# 3. Remove all associated files |
NewerOlder