Skip to content

Instantly share code, notes, and snippets.

View valera-rozuvan's full-sized avatar
💻
coding

Valera Rozuvan valera-rozuvan

💻
coding
View GitHub Profile
https://medium.com/@_rchaves_/building-microfrontends-part-i-creating-small-apps-710d709b48b7
Trying the commands after the sentence "That's it, you can now run the header with:".
--------------------------
Valeras-MacBook-Air:header valerarozuvan$ npm run build
> [email protected] build /Users/valerarozuvan/dev/experiments/micro_f_01/header
> react-scripts build
@valera-rozuvan
valera-rozuvan / asm_code_thargor6_mb3d_project.txt
Created July 27, 2016 22:06
All assembly code from thargor6/mb3d project
function FastLocateByte(const Where; Start, BSize: Integer; What: Word): Integer; assembler; pascal;
asm
push edi
mov ecx, [bsize]
sub ecx, [start]
jz @notfound // No data to search
mov edi, [where]
add edi, [start]
mov ax, [what]
@search:
@valera-rozuvan
valera-rozuvan / gist:5ce818fb842fd5636f6a
Created January 10, 2016 14:28
bash_history of an OpenCV 2.4.11 and Python 2.7 install on a raspberry pi 2
sudo raspi-config
df -h
cat /proc/cpuinfo
/opt/vc/bin/vcgencmd measure_temp
sudo shutdown -h now
sudo ifconfig
/opt/vc/bin/vcgencmd measure_temp
htop
top
/opt/vc/bin/vcgencmd measure_temp
Page 1 (Scheduler not running?):
{'cups_connection_failure': False}
Page 2 (Is local server publishing?):
{'local_server_exporting_printers': False}
Page 3 (Choose printer):
{'cups_dest': <cups.Dest LBP6020-2 (default)>,
'cups_instance': None,
'cups_queue': u'LBP6020-2',
'cups_queue_listed': True}
Page 4 (Check printer sanity):
D [04/Aug/2015:11:31:24 +0300] [Client 14] Sending file.
D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown.
D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=5332, response=(nil)(), pipe_pid=0, file=16
D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown.
D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=3284, response=(nil)(), pipe_pid=0, file=16
D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown.
D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1236, response=(nil)(), pipe_pid=0, file=16
D [04/Aug/2015:11:31:24 +0300] [Client 14] Waiting for request.
D [04/Aug/2015:11:31:24 +0300] cupsdSetBusyState: newbusy="Dirty file
I get the following warnings when running 8fa9787a4d8185aa46d22eac0eaf53046777e0f6 commit.
---------------------------------------------------------
/home/valera/github_projects/02-angular-mentoring-app/src/app/components/storage/storage.factory.js
line 23 col 39 Expected '===' and instead saw '=='.
line 53 col 31 Expected '===' and instead saw '=='.
line 41 col 33 'localStorage' is not defined.
line 108 col 9 'localStorage' is not defined.
@valera-rozuvan
valera-rozuvan / gist:9b97038399120a22adca
Created June 1, 2015 23:18
C-h f tab-to-tab-stop RET
tab-to-tab-stop is an interactive compiled Lisp function.
It is bound to <tab>, M-i.
(tab-to-tab-stop)
Insert spaces or tabs to next defined tab-stop column.
The variable `tab-stop-list' is a list of columns at which there are tab stops.
Use M-x edit-tab-stops to edit them interactively.
$ cd tmp/
$ wget https://www.dropbox.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz
--2014-05-05 13:43:15-- https://www.dropbox.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz
Resolving www.dropbox.com (www.dropbox.com)... 108.160.166.13
Connecting to www.dropbox.com (www.dropbox.com)|108.160.166.13|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz?token_hash=AAGRqcwSvpslgmsvLYEsWYZRUbSk6KN0hRUF-idz9H-1Rw [following]
--2014-05-05 13:43:18-- https://dl.dropboxusercontent.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz?token_hash=AAGRqcwSvpslgmsvLYEsWYZRUbSk6KN0hRUF-idz9H-1Rw
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 23.21.215.118, 50.16.206.191, 50.16.219.169, ...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|23.21.215.118|:443... connected.
@valera-rozuvan
valera-rozuvan / gist:648e01e52512ef1a5251
Created April 30, 2014 10:21
Error on grader handler
[30/Apr/2014 06:20:31] "POST /preview/xblock/i4x:;_;_private;_01;_video;_f02ecbdb91c54705af02f67b784c624d/handler/xmodule_handler/save_user_state HTTP/1.1" 200 17
2014-04-30 06:20:52,224 ERROR 4611 [contentstore.views.preview] preview.py:75 - error processing ajax call
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/preview.py", line 59, in preview_handler
resp = instance.handle(handler, req, suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 284, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 960, in handle
return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 643, in handle
@valera-rozuvan
valera-rozuvan / gist:10662769
Created April 14, 2014 16:23
Passing Jasmine JavaScript tests...
edxapp@precise64:~/edx-platform$ git checkout master
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
edxapp@precise64:~/edx-platform$ git pull
remote: Counting objects: 301, done.
remote: Compressing objects: 100% (294/294), done.
remote: Total 301 (delta 118), reused 8 (delta 1)
Receiving objects: 100% (301/301), 590.38 KiB | 127.00 KiB/s, done.
Resolving deltas: 100% (118/118), done.
From https://github.com/edx/edx-platform