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 | |
# set -x | |
if [ $# -ne 1 ] | |
then | |
ME=`basename $0` | |
cat <<EOF | |
Usage: $ME input-file [dir] |
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
http://brunner.kgu.edu.ua/index.php/psy-metodiks/20/330-sat | |
A = Я верю в себя только тогда, когда чувствую, что могу справиться со всеми стоящими передо мной задачами. | |
B = Я верю в себя даже тогда, когда чувствую, что не могу справиться со всеми стоящими передо мной задачами. | |
A = Я часто внутренне смущаюсь, когда мне говорят комплименты. | |
B = Я редко внутренне смущаюсь, когда мне говорят комплименты. | |
A = Мне кажется, что человек может прожить свою жизнь так, как ему хочется. | |
B = Мне кажется, что у человека мало шансов прожить свою жизнь так, как ему хочется. | |
A = Я всегда чувствую в себе силы для преодоления жизненных невзгод. | |
B = Я далеко не всегда чувствую в себе силы для преодоления жизненных невзгод. |
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 type="text/javascript"> | |
function addLink() { | |
console.log('hey'); | |
var body_element = document.getElementsByTagName('body')[0]; | |
var selection; | |
selection = window.getSelection(); | |
// added lines begin |
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
// ==UserScript== | |
// @name Vk - audio.getRecommendations | |
// @namespace http://vk.com/audios* | |
// @version 0.1 | |
// @description Scraping Vk audio recommendations | |
// @author @flashbag | |
// @match *://vk.com/audios* | |
// @grant none | |
// ==/UserScript== |
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
#!/usr/bin/env node | |
var $; | |
var request = require('request'); | |
var cheerio = require('cheerio'); | |
var pageCount = 6; | |
var pageUrl = "http://ap.if.ua/index.php?page=5&bl=1&pg=PAGE&roz=1&cat=1&rub=14&find=&foto=&sort=1"; | |
var tableCssQuery = 'center > div > table > tbody > tr:nth-child(2) > td > table > tbody > tr > td:nth-child(2) > table > tbody > tr:nth-child(3) table:not(:nth-child(1))'; | |
var tableCssQuery = 'center > div > table tr:nth-child(2) > td > table tr > td:nth-child(2) > table tr:nth-child(3) table:not(:nth-child(1))'; |
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
// http://stackoverflow.com/a/7855281 | |
var contact = new Contact({ | |
phone: request.phone, | |
status: request.status | |
}); | |
// Convert the Model instance to a simple object using Model's 'toObject' function | |
// to prevent weirdness like infinite looping... | |
var upsertData = contact.toObject(); |
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
function ceasarsCipher(text, key) { | |
if (!text || typeof text !== 'string') { | |
throw new Error('text is not valid'); | |
} | |
if (typeof key !== 'number') { | |
throw new Error('key is not valid'); | |
} |
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
Adobe Certified Expert | |
Appcelerator Titanium Certified Application Developer | |
Appcelerator Titanium Certified Mobile Developer | |
BlackBerry Certified Builder for Native Application Development | |
BlackBerry Certified Builder for Web Application Development | |
Cambridge English: Advanced (CAE) | |
Cambridge English: Business Vantage or Higher | |
Cambridge English: First (FCE) | |
Cambridge English: Proficiency (CPE) | |
Cisco Certified Design Associate |
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 | |
sleep 2 | |
xdotool mousemove --sync 1000 10 | |
xdotool click 3 | |
sleep 1 | |
xdotool mousemove_relative --sync 0 80 | |
xdotool click 1 |
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
export PS1="\[\033[38;5;2m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;9m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;6m\]@\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;3m\]\H\[$(tput sgr0)\]\[\033[38;5;15m\] \[\033[38;5;6m\]\W\[$(tput sgr0)\] ->\[$(tput sgr0)\] " |
OlderNewer