Skip to content

Instantly share code, notes, and snippets.

@miguellopes
miguellopes / Google_Colaboratory_backup.py
Created August 29, 2019 21:08 — forked from rdinse/Google_Colaboratory_backup.py
Simple Google Drive backup script with automatic authentication for Google Colaboratory (Python 3)
# Simple Google Drive backup script with automatic authentication
# for Google Colaboratory (Python 3)
# Instructions:
# 1. Run this cell and authenticate via the link and text box.
# 2. Copy the JSON output below this cell into the `mycreds_file_contents`
# variable. Authentication will occur automatically from now on.
# 3. Create a new folder in Google Drive and copy the ID of this folder
# from the URL bar to the `folder_id` variable.
# 4. Specify the directory to be backed up in `dir_to_backup`.
#!/usr/bin/python
# -*- coding: <utf-8> -*-
import scrapy, sys, nltk
from w3lib.html import remove_tags
import MySQLdb
from nltk import ne_chunk, pos_tag, word_tokenize
from nltk.tree import Tree
import Levenshtein
import dateutil.parser

Keybase proof [22/589]

I hereby claim:

  • I am miguellopes on github.
  • I am miguellopes (https://keybase.io/miguellopes) on keybase.
  • I have a public key ASDLtYfe9LDq1HdXdsa-eyTa651ngcVekUoQJg9GRBkJYAo

To claim this, I am signing this object:

@miguellopes
miguellopes / json-to-csv.php
Last active July 3, 2016 16:24 — forked from Kostanos/json-to-csv.php
Convert large JSONL files to CSV.Use the array keys as the first row.Command line using:json-to-csv.php json.filename > csv.filename
#!/usr/bin/php
<?php
/*
* Convert JSON file to CSV and output it.
*
* JSON should be an array of objects, dictionaries with simple data structure
* and the same keys in each object.
* The order of keys it took from the first element.
*
* Example:
@miguellopes
miguellopes / 1_fase.js
Last active November 9, 2015 04:42
post jscrambler
i3.charCodeAt(5)==101&amp;&amp;i3.length==8&amp;&amp;i3.charCodeAt(3)==117&amp;&amp;i3.charCodeAt(0)==100)break}for(var h3 in J3[i3]){if(h3.length==6&amp;&amp;h3.charCodeAt(5)==110&amp;&amp;h3.charCodeAt(0)==100)break}var T3=function(C3){var x3=0,l3=0;while(x3&lt;C3.length){l3+=C3.charCodeAt(x3++)*x3;}return l3;},S3=J3[i3][h3],H3=S3.substring(0,S3.length);for(var P3="",e3=(10490-T3(H3)),I3=(function(C3){var Z3=C3.length,f3=Math.round(1/0.1161),Q3=parseInt(Z3/f3),K3=1,z3=C3.substring((10490-T3(H3)),Q3),r3,E3,j3=Q3;K3++;while(K3&lt;f3){E3=C3.substring(j3,(Q3*K3));(K3%(10492-T3(H3))!=(10490-T3(H3)))?(z3+=E3+r3):(K3+1&lt;f3)?(r3=E3):(z3+=E3);j3+=Q3;K3++;}z3+=C3.substring(j3,Z3);return z3;})(v3),s3=function(I3,d3){for(var n3=(10490-T3(H3)),x3=(10490-T3(H3));x3&lt;d3;x3++){n3*=(10586-T3(H3));var b3=I3.charCodeAt(x3);if(b3&gt;=32&amp;&amp;b3&lt;=(10617-T3(H3))){n3+=b3-(10522-T3(H3));}}return n3;};e3&lt;I3.length;){if(I3.charAt(e3)!="`")P3+=I3.charAt(e3++);else{if(I3.charAt(e3+1)!="`"){var O3=s3(I3.charAt(e3+3),(1049
--- plt-372/src/mzscheme/src/bool.c 2007-04-10 17:59:38.000000000 +0000
+++ plt-372/src/mzscheme/src/bool.c 2015-11-06 03:06:03.514070804 +0000
@@ -124,6 +124,10 @@
return SAME_OBJ(obj1, obj2);
}
+#ifdef MZ_XFORM
+START_XFORM_SKIP;
+#endif
+