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
| use std::io; | |
| use std::str; | |
| use bytes::BytesMut; | |
| use tokio_io::codec::{Encoder, Decoder}; | |
| use std::str::FromStr; | |
| fn extract_coord(num: f32, orientation: &str) -> f32 { | |
| let res = num%100.0; | |
| let ans = (num/100.0).floor() + res/60.0; |
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
| { | |
| "data": [ | |
| { | |
| "attributes": { | |
| "code": "001", | |
| "created_at": null, | |
| "last_pos": [ | |
| 103.20172280073166, | |
| -36.36761268401616 |
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 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] | |
| Categories=Network;Http Testing | |
| Encoding=UTF-8 | |
| Name=Postman | |
| GenericName=Http Requester | |
| Comment=Http Requester | |
| TryExec=/home/abraham/.local/opt/Postman-linux-x64-5.0.2/Postman/Postman | |
| Exec=/home/abraham/.local/opt/Postman-linux-x64-5.0.2/Postman/Postman %u | |
| Icon=/home/abraham/.local/opt/Postman-linux-x64-5.0.2/Postman/resources/app/assets/icon.png | |
| Terminal=false |
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 login_required(view): | |
| @wraps(view) | |
| def decorated(*args, **kwargs): | |
| auth = request.authorization | |
| if auth is None: | |
| abort(401) | |
| user = User.get_by('api_key', auth.password) | |
| if user is not None: |
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
| { | |
| '_type': 'execution', | |
| 'id': '29uiferi', | |
| 'process_id': 'some.2018-05-16.xml', | |
| 'state': { | |
| '_type': ':sorted_map', | |
| 'items': { | |
| 'node1_id': { | |
| '_type': 'node', | |
| 'id': 'node1_id', |
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
| # Usage: usdtomxn 1 | |
| # Output: 19.9319 | |
| # Usage: mxntousd 19.9319 | |
| # Output: 1.0 | |
| # | |
| # You'll need the jq command for this to run | |
| # Vas a necesitar el comando jq para que esto jale | |
| # | |
| # https://stedolan.github.io/jq/ |
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
| data = [ | |
| "44013001", | |
| "44042099", | |
| "44071001", | |
| "44071002", | |
| "44072101", | |
| "44072102", | |
| "44072199", | |
| "44072201", | |
| "44072299", |
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
| set encoding=utf-8 | |
| scriptencoding utf-8 | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'VundleVim/Vundle.vim' | |
| Plugin 'vim-scripts/Align' |
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 | |
| res=`python -c " | |
| a=1 | |
| a+=1 | |
| print(a) | |
| "` | |
| echo $res |