Skip to content

Instantly share code, notes, and snippets.

@clecrois
clecrois / index.js
Created Jul 22, 2019
NavBar component
View index.js
function App() {
return (
<div className="App">
<Navbar />
</div>
);
}
class Navbar extends React.Component {
constructor() {
View adb_cheatsheet
adb shell monkey -p com.package.name -c android.intent.category.LAUNCHER 1 #start the launcher activity of an applicatoin
@moorage
moorage / realsense-serial-numbers.py
Created Jul 22, 2019
Realsense serial numbers from python interface
View realsense-serial-numbers.py
import pyrealsense2 as rs
c = rs.context()
devices = c.query_devices()
print(devices)
print(devices[0])
print(devices[1])
@sidpagariya
sidpagariya / black.css
Created Jul 22, 2019
Slack 4.0.0 Dark Mode CSS
View black.css
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
View easybuild_test_report_easyconfigs_pr8601_20193322-UTC-22-33-08.md

Test report for https://github.com/easybuilders/easybuild-easyconfigs/pull/8601

Test result

Build succeeded for 3 out of 3 (3 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

  • SUCCESS Boost.Python-1.70.0-gompi-2019a.eb
  • SUCCESS Boost.Python-1.70.0-gompic-2019a.eb
  • SUCCESS Boost.Python-1.70.0-iimpic-2019a.eb
@rizidoro
rizidoro / uuid.sql
Created Jul 22, 2019
Mysql bin_to_uuid & uuid_to_bin
View uuid.sql
DELIMITER |
CREATE FUNCTION bin_to_uuid(b BINARY(16))
RETURNS CHAR(36) DETERMINISTIC
BEGIN
DECLARE HEX CHAR(32);
SET HEX = HEX(b);
RETURN LOWER(CONCAT(LEFT(HEX, 8), '-', MID(HEX, 9,4), '-', MID(HEX, 13,4), '-', MID(HEX, 17,4), '-', RIGHT(HEX, 12)));
END
|
View untrusted-lvl6-solution.js
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
View mds.json
This file has been truncated, but you can view the full file.
@mrluffya
mrluffya / extensions.json
Created Jul 22, 2019
VSCode's Settings - Syncing
View extensions.json
[
{
"id": "abusaidm.html-snippets",
"name": "html-snippets",
"publisher": "abusaidm",
"version": "0.2.1"
},
{
"id": "akamud.vscode-theme-onedark",
"name": "vscode-theme-onedark",
@Santiago-j-s
Santiago-j-s / dia1.ipynb
Created Jul 22, 2019
Clasificadores probabilisticos en aprendizaje automático
View dia1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.