Skip to content

Instantly share code, notes, and snippets.

@paulrouget
paulrouget / ff.md
Last active May 14, 2024 02:30
Hacking Firefox
@PhirePhly
PhirePhly / ISA.txt
Created March 26, 2012 20:42
Intro to the ISA bus by Mark Sokos
THE ISA AND PC/104 BUS
IBM, IBM/XT, IBM PC, and IBM PC AT are registered trademarks of
International Business Machines Corporation.
This file is designed to give a basic overview of the bus found in
most IBM clone computers, often referred to as the XT or AT bus. The
AT version of the bus is upwardly compatible, which means that cards
@marceloandrader
marceloandrader / callbacks.js
Last active May 14, 2024 02:29
Functions are objects
// you can create a function by passing the
// Function constructor a string of code
var func_multiply = new Function("arg1", "arg2", "return arg1 * arg2;");
func_multiply(5,10); // => 50
@Wendev13
Wendev13 / arrays&object exercice.js
Last active May 14, 2024 02:29
Arrays, Objects, Functions
let products = [
{
name: "iPhone",
price: 799.99
},
{
name: "Samsung Galaxy S10",
price: 900.00
}
]

Pip is a package manager of python. You can download Python libraries from some Python repositories like PyPI. You can also download libraries from a git repository. This is gonna be the issue to be explained in this article.

I don't like to memorize things all the time. So, I guess, I couldn't be working without internet :). Whenever I need to install some python libraries from a git repositories, I see a lot of way to do it. It is really confusing. This should be the reason why I can't memorize it. I can see how a very simple requirement is handled with to many confusing way. There shouldn't be to many way. Some of them is not working neither. At last, I decided to blog it.

As you may know, you can use two protocols which are http and ssh to do something on git repositories. Using protocol ssh instead of http may provide some ease of use. Because of nature of ssh, you can do something with your primary/public keys. So, you don't have to input your credentials all the time. But I'll be

@projectoperations
projectoperations / gist:9442621f5d927f090158a3c1507cb068
Created November 27, 2023 14:38 — forked from tomraithel/gist:4085481
HTML + CSS: A flipbook-like animation with CSS3
<div class="flipbook">
<div class="page left leftpage">
<div class="pagewrap">
<div class="page_content">
Dies ist die erste Seite des flipbooks
</div>
</div>
</div>
<div class="page center">
<div class="innerpage rightpage inner_right">
@kobakei
kobakei / index.html
Created January 5, 2012 05:57
文字列を虹色に表示するスクリプト
<!DOCTYPE html>
<html>
<head>
<title>Rainbow</title>
<!-- jQuery -->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1");
</script>
<!-- rainbow.js -->
@noteeeeee
noteeeeee / JetBrainsActivation.md
Last active May 14, 2024 02:23
Webstorm/JetBrains products activation 2024 (Windows/MacOS)

Webstorm/JetBrains products activation 2024 (Windows/MacOS)

1.Proxy Settings

  1. Step 1: Navigate to Proxy settings.
  2. Step 2: Select "Manual proxy settings - HTTP".
    • Hostname: localhost
    • Port: 80

Set no proxy for:

@bxcodec
bxcodec / _struct_to_map.go
Last active May 14, 2024 02:22
Golang Struct To Map Example By JSON tag
/*
This function will help you to convert your object from struct to map[string]interface{} based on your JSON tag in your structs.
Example how to use posted in sample_test.go file.
*/
func structToMap(item interface{}) map[string]interface{} {
res := map[string]interface{}{}
if item == nil {
return res
}
@stevebauman
stevebauman / RouteServiceProvider.php
Last active May 14, 2024 02:19
Throw exception on Eloquent model binding name mismatch
<?php
namespaced App\Providers;
use RuntimeException;
use Illuminate\Support\Facades\Route;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Routing\ImplicitRouteBinding;
class RouteServiceProvider extends ServiceProvider