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
| f: | |
| pushl %ebp | |
| movl %esp, %ebp | |
| pushl %ebx | |
| xorl %ebx, %ebx | |
| subl $4, %esp | |
| cmpl $9, 8(%ebp) | |
| jle .L7 | |
| .p2align 4,,7 | |
| .p2align 3 |
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 | |
| # Get the current status & voltage | |
| STATUS=`cat /sys/class/power_supply/battery/status` | |
| PERCENT=`cat /sys/class/power_supply/battery/capacity` | |
| echo "$STATUS $PERCENT%" |
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 & extends | |
| */ | |
| Object.prototype.def = function(variables) { | |
| for (k in variables) { | |
| this.prototype[k] = variables[k]; | |
| } | |
| } |
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
| <?php | |
| class A | |
| { | |
| public function __toString() | |
| { | |
| $x = new A; | |
| htmlspecialchars($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
| <?php | |
| class A { | |
| private $x; | |
| public function __sleep() { | |
| return ['x']; | |
| } | |
| } | |
| class B extends A { |
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
| using System; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| class Program | |
| { | |
| public static void Main() | |
| { |
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
| using System; | |
| using System.IO; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| class Program | |
| { | |
| public static void Main() | |
| { |
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
| static void listerLesFilms() | |
| { | |
| String requete = "SELECT nom, annee FROM movies"; | |
| try { | |
| Statement stmt = connexion.createStatement(); | |
| ResultSet results = stmt.executeQuery(requete); | |
| while (results.next()) { | |
| System.out.println("* Film, nom: "+results.getString("nom")+", année: "+results.getString("annee")); | |
| } |
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 f(x): | |
| return 123 |
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
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from scipy.integrate import solve_ivp | |
| a, y0, g0 = 3, 100, 100 | |
| T = np.linspace(0, 30, 30) | |
| gs = [] | |
| for t in T: | |
| # G depends on Y |
OlderNewer