This file contains hidden or 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 python | |
| # Examples: | |
| # | |
| ## encoding | |
| # | |
| # $ head -c 135 /dev/urandom | b32backup.py | |
| # ZLBD4SI6YCWDF63FYMQ4X7ZOORL5UYBOXZ4Y2WU54OKEQ4N5LBAFA7YHMYTC3W33KHCENWPK 13CB | |
| # TUK5QT55AXF5PZL6Q6A5RJ7CJ24YZML3WMRQWAI6TCO5XGMOHJWAATO7TUCEM7BCL6FGTC6G 03AF | |
| # 6SZVCA4CTBGIHZXC5DEGMCIOLRJPKGVIQCTWAQZAX4VMNLPULEJLWJMV6AAPIOPUYCVKEEIT 228A |
This file contains hidden or 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
| [Desktop Entry] | |
| Name=Byobu Terminal | |
| Comment=Advanced Command Line and Text Window Manager | |
| Icon=byobu | |
| Exec=env BYOBU_WINDOWS=split2 gnome-terminal --app-id us.kirkland.terminals.byobu --window-with-profile=Byobu -e byobu | |
| Type=Application | |
| Categories=GNOME;GTK;Utility; | |
| X-GNOME-Gettext-Domain=byobu |
This file contains hidden or 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
| CFLAGS += -Wall | |
| mysql2sqlite: mysql2sqlite.c | |
| $(CC) $(CFLAGS) -o $@ $^ |
This file contains hidden or 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 ruby | |
| require 'bigdecimal' | |
| require 'csv' | |
| require 'net/http' | |
| require 'nokogiri' | |
| class CompanyStats | |
| attr_reader :name |
This file contains hidden or 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 | |
| [[ -z "$BYOBU_RUN_DIR" ]] && \ | |
| echo "Not a Byobu session!" 1>&2 && exit 1 | |
| [[ ! -e $BYOBU_RUN_DIR/printscreen ]] && \ | |
| echo "No printscreen found! (try pressing Shift+F7)" 1>&2 && exit 1 | |
| geany $BYOBU_RUN_DIR/printscreen |
This file contains hidden or 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
| require 'net/http' | |
| require 'nokogiri' | |
| $uri = URI('http://bvmf.bmfbovespa.com.br/cias-listadas/empresas-listadas/BuscaEmpresaListada.aspx?idioma=pt-br') | |
| def fetch_html(post_data) | |
| req = Net::HTTP::Post.new($uri) | |
| req.body = post_data | |
| res = Net::HTTP.start($uri.hostname, $uri.port) { |http| http.request(req) } |
This file contains hidden or 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
| class MyObject | |
| def initialize | |
| @data = 'x' * 1_000_000 | |
| end | |
| def inspect | |
| object_id | |
| end | |
| end |
This file contains hidden or 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
| diff --git a/script/lib/install-application.js b/script/lib/install-application.js | |
| index be790b4..477265b 100644 | |
| --- a/script/lib/install-application.js | |
| +++ b/script/lib/install-application.js | |
| @@ -39,7 +39,7 @@ module.exports = function (packagedAppPath) { | |
| const apmExecutableName = CONFIG.channel === 'beta' ? 'apm-beta' : 'apm' | |
| const appName = CONFIG.channel === 'beta' ? 'Atom Beta' : 'Atom' | |
| const appDescription = CONFIG.appMetadata.description | |
| - const userLocalDirPath = path.join('/usr', 'local') | |
| + const userLocalDirPath = '/home/romulo/opt/atom' |
This file contains hidden or 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
| def is_printable(x): | |
| return \ | |
| x >= 0x25 and x <= 0x2a or \ | |
| x >= 0x2c and x <= 0x3c or \ | |
| x >= 0x3e and x <= 0x7e or \ | |
| x >= 0xa1 and x <= 0xac or \ | |
| x >= 0xae and x <= 0xff | |
| s = [chr(x) for x in range(256) if is_printable(x)] |
This file contains hidden or 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
| #include <stdio.h> | |
| int main() | |
| { | |
| int i; | |
| static const int dm = 4; | |
| for (i = -2 * dm; i < 2 * dm; i++) { | |
| int rem = i % dm; | |
| int mod = (rem + dm) % dm; |