Download slt.py python script (supports multiple build) from this repository.
python slt.py <"sublime_text file path">
Download slt.py python script (supports multiple build) from this repository.
python slt.py <"sublime_text file path">
| DATA = [ | |
| [ | |
| [['Who', 'is', 'Shaka', 'Khan', '?'], ['O', 'O', 'I-PER', 'I-PER', 'O']] | |
| ], | |
| [ | |
| [['I', 'like', 'London', 'and', 'Berlin', '.'], ['O', 'O', 'I-LOC', 'O', 'I-LOC', 'O']] | |
| ] | |
| ] | |
| with open('output.conll', 'w') as f: |
| window.Clipboard = (function(window, document, navigator) { | |
| var textArea, | |
| copy; | |
| function isOS() { | |
| return navigator.userAgent.match(/ipad|iphone/i); | |
| } | |
| function createTextArea(text) { | |
| textArea = document.createElement('textArea'); |
| FROM ubuntu | |
| RUN apt-get update -y \ | |
| && apt-get install -y wget \ | |
| && wget -O netselect.deb http://http.us.debian.org/debian/pool/main/n/netselect/netselect_0.3.ds1-28+b1_`dpkg --print-architecture`.deb \ | |
| && dpkg -i netselect.deb \ | |
| && rm netselect.deb \ | |
| && sed -r -i -e "s#http://(archive|security)\.ubuntu\.com/ubuntu/?#$(netselect -v -s1 -t20 `wget -q -O- https://launchpad.net/ubuntu/+archivemirrors | grep -P -B8 "statusUP|statusSIX" | grep -o -P "http://[^\"]*"`|grep -P -o 'http://.+$')#g" /etc/apt/sources.list |
| #!/bin/bash | |
| # Auto rotate screen based on device orientation | |
| # based on https://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu | |
| # install | |
| # 1. apt-get install iio-sensor-proxy inotify-tools | |
| # 2. add script to autostart | |
| # Receives input from monitor-sensor (part of iio-sensor-proxy package) | |
| # Screen orientation and launcher location is set based upon accelerometer position |
After losing access to rEFInd yet again (Windows 10 Anniversary Edition), I was able to find the proper invocation of BCDEdit thanks to a helpful person on StackOverflow. None of the Microsoft documentation mentions this, but you NEED single quotes around {bootmgr} for sure if you are in the PowerShell shell, but possibly also if you are in the Command Prompt. This allowed me to add a new entry for rEFInd and I've had to do this multiple times so I know it works on Windows 10.
bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
becomes
bcdedit /set '{bootmgr}' path \EFI\refind\refind_x64.efi
$ uname -r
| Diff tool: C:\Program Files (x86)\WinMerge\WinMergeU.exe | |
| Arguments: "$LOCAL" "$REMOTE" -dl "Local" -dr "Remote" | |
| Merge tool: C:\Program Files (x86)\WinMerge\WinMergeU.exe | |
| Arguments: "$MERGED" |
| CREATE DEFINER=`root`@`localhost` PROCEDURE `Cmonk_partition_manager`(in partition_frequency varchar(100), in db_schema varchar(100),in input_table_name varchar(100), in partition_column varchar(100)) | |
| BEGIN | |
| -- Author - Code Monk | |
| -- Version - 1.0 | |
| -- Procedure for automated partitioning of table | |
| -- Inputs : | |
| -- 1- Partition_frequency : Options-(Daily,Monthly,Weekly) | |
| -- 2- db_schema : Name of Database schema | |
| -- 3- input_table_name : Table Name |
| function mySlowFunction(baseNumber) { | |
| console.time('mySlowFunction'); | |
| let result = 0; | |
| for (var i = Math.pow(baseNumber, 7); i >= 0; i--) { | |
| result += Math.atan(i) * Math.tan(i); | |
| }; | |
| console.timeEnd('mySlowFunction'); | |
| } | |
| mySlowFunction(8); // higher number => more iterations => slower |