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 java.io.BufferedReader; | |
| import java.io.DataOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class Request { |
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
| .nes-radio:checked:focus+span::before,.nes-radio:checked:hover+span::before { | |
| animation:blink 1s infinite steps(1) | |
| } |
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 sleep(milliseconds) { | |
| var start = new Date().getTime(); | |
| for (var i = 0; i < 1e7; i++) { | |
| if ((new Date().getTime() - start) > milliseconds){ | |
| break; | |
| } | |
| } | |
| } |
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
| async function fold_switch(id){ | |
| let section = jQuery("#" + id); | |
| let visibility = section.css("visibility"); | |
| if (visibility === "hidden"){ | |
| unfold(section); | |
| } else { | |
| fold(section); | |
| } | |
| } |
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 pickle | |
| class A: | |
| def __init__(self, item): | |
| self.item = item | |
| b = 5 | |
| if __name__ == "__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
| sudo mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xmlout | |
| sudo apt install imagemagick | |
| convert *.jpg result.pdf |
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
| python -m cProfile -s cumtime script_a_analyser.py |
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 json | |
| def encode(dic): | |
| # Marche aussi avec des listes, des listes et dictionnaires imbriqués, etc ... | |
| return json.dumps(dic) | |
| def encode_pretty(dic): | |
| return json.dumps(dic, sort_keys=True, indent=4, separators=(',', ': ')) | |
| def encode_compact(dic): |
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 org.json.*; | |
| public class App | |
| { | |
| public static void main( String[] args ) | |
| { | |
| JSONObject jo = new JSONObject(); | |
| jo.put("name", "jon doe"); | |
| jo.put("age", "22"); | |
| jo.put("city", "chicago"); |
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 java.util.ArrayList; | |
| import java.util.List; | |
| import java.sql.DriverManager; | |
| import java.sql.PreparedStatement; | |
| import java.sql.Connection; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.sql.Statement; | |
| /** |
OlderNewer