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
# script to ask user for the txt file name and then clean the URLS and save in new txt file | |
def main(): | |
# ask user for the txt file name | |
file_name = input("Enter the txt file name: ") | |
parse_file(file_name) | |
def parse_file(file_name): | |
with open(file_name, "r") as file: | |
# read the file |
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
#!/bin/bash | |
# turn on LED | |
echo 1 | sudo tee /sys/class/leds/ACT/brightness | |
# turn off LED | |
echo 0 | sudo tee /sys/class/leds/ACT/brightness | |
# heatbeat blink | |
echo heartbeat | sudo tee /sys/class/leds/ACT/trigger |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import os | |
from PyPDF2 import PdfReader, PdfWriter | |
def main(): | |
mark_it_up("watermark.pdf", "/source/", "/output/") | |
def mark_it_up(watermark_file, pdf_folder, output_folder): | |
""" |
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
% tail length | |
len([],A,A). %base | |
len([_|T],A,R) :- | |
A1 is A + 1, | |
len(T, A1, R). | |
% params to send | |
len(L,Res):- len(L,0, Res). |
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
0 | |
00 | |
01 | |
02 | |
03 | |
04 | |
05 | |
06 | |
07 | |
08 |
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
/* | |
Version 3.0 | |
Edited by Flexxkii | |
Stylesheet by Cryptonaut | |
Last modified: 15 MAR 2015 | |
Details: This is a custom template made by /u/Cryptonaut. | |
Find out more on /r/Naut. | |
-------------------------------------------------------------------------- */ | |
*,:before,:after { |
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
var noble = require("noble"); | |
var robot = require("robotjs"); | |
var begMovement = []; | |
var initPos = []; | |
var moving = false; | |
var clicked = false; | |
robot.setMouseDelay(20); | |
noble.on('stateChange', function(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
C:\tizen-studio\tools>sdb shell | |
sh-3.2$ pkgcmd -l | |
system apps pkg_type [tpk] pkgid [com.samsung.alti-barometer] name [Alti-Barometer] version [2.0.9] storage [internal] | |
system apps pkg_type [tpk] pkgid [com.samsung.d-calculator-wc1] name [Calculator] version [20.0.6] storage [internal] | |
system apps pkg_type [rpm] pkgid [com.samsung.unit-test-sensor] name [Unit Test sensor Applications] version [1.0.0] storage [internal] | |
system apps pkg_type [rpm] pkgid [com.samsung.bluetooth-testmode] name [Bluetooth Testmode] version [0.0.14storage [internal] | |
system apps pkg_type [rpm] pkgid [com.samsung.w-clock-viewer] name [W-Clock-Viewer] version [0.2.15] storage [internal] | |
system apps pkg_type [rpm] pkgid [org.tizen.chromium-efl] name [Tizen Web Engine based on Chromium] version [69.0.3497.106] storage [internal] | |
system apps pkg_type [rpm] pkgid [org.tizen.net-popup] name [Network popup] version [3.0] storage [internal] | |
syst |
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
# script to ask user for the txt file name and then clean the URLS and save in new txt file | |
def main(): | |
# ask user for the txt file name | |
file_name = input("Enter the txt file name: ") | |
parse_file(file_name) | |
def parse_file(file_name): | |
with open(file_name, "r") as file: | |
# read the file |
NewerOlder