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 bash | |
| # castanet.sh: Script to connect a chromecast to a WiFi network. | |
| # | |
| # Allows you to put your Chromecast on WiFi and do Chromecast initial setup | |
| # without using the Google Home app at all, just using a normal Linux computer. | |
| # | |
| # You do need your Chromecast to be on Ethernet, or (untested) to join its setup WiFi | |
| # network with your PC, and you also need to find out its IP yourself with e.g. | |
| # Wireshark. | 
  
    
      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 python3 | |
| # See: https://medium.com/@lakshmanok/how-to-load-geojson-files-into-bigquery-gis-9dc009802fb4 | |
| import json | |
| import sys | |
| def convert_geojson(input_file_path): | |
| with open(input_file_path, 'r') as ifp: | |
| with open('to_load.json', 'w') as ofp: | |
| features = json.load(ifp)['features'] | 
  
    
      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
    
  
  
    
  | // Get the canvas and its context | |
| var canvas = document.querySelector('#paint'); | |
| var ctx = canvas.getContext('2d'); | |
| // Get the parent element of the canvas and its computed style | |
| var sketch = document.querySelector('.sketch'); | |
| var sketch_style = getComputedStyle(sketch); | |
| // Set the canvas dimensions to match the parent element | |
| canvas.width = parseInt(sketch_style.getPropertyValue('width')); | 
  
    
      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
    
  
  
    
  | (function(window){ | |
| // Define the Pen object, which handles drawing on the canvas | |
| var Pen = function(context){ | |
| // Whether the user is currently drawing | |
| var drawing; | |
| // Reset the pen's drawing style | |
| this.reset = function(){ | |
| context.beginPath(); | |
| context.lineCap = 'round'; | 
  
    
      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/sh | |
| # FTP_COPY version 0.3 by MP77V www.4pda.ru | |
| # ---------------------------- | |
| FTP_DEST_DIR="/FTP_directory" | |
| FTP_DEST_HOST="FTP_host" | |
| FTP_DEST_PORT="21" | |
| FTP_DEST_LOGIN="FTP_user" | |
| FTP_DEST_PASS="FTP_password" | |
| # ---------------------------- | 
  
    
      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 | |
| # The MIT License | |
| # | |
| # Copyright (c) 2010, MaDeuce | |
| # | |
| # https://en.wikipedia.org/wiki/MIT_License | |
| # | |
| # ============================================================================ | |
| # This command measures latency and bandwidth of an internet connection from the command line. | 
  
    
      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
    
  
  
    
  | # | |
| # URI parsing function | |
| # | |
| # The function creates global variables with the parsed results. | |
| # uri_schema, uri_address, uri_user, uri_password, uri_host, uri_port, uri_path, uri_query, uri_fragment | |
| # It returns 0 if parsing was successful or non-zero otherwise. | |
| # | |
| # [schema://][user[:password]@]host[:port][/path][?[arg1=val1]...][#fragment] | |
| # | |
| function uri_parser() { | 
  
    
      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 | |
| ## @author Jay Goldberg | |
| ## @email [email protected] | |
| ## @license Apache 2.0 | |
| ## @description Run web browser in a cgroup | |
| ## @usage cgroup-chrome | |
| #======================================================================= | |
| MB=${$1:-1024} | 
  
    
      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
    
  
  
    
  | package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "time" | |
| ) | |
| type Person struct { |