This file contains 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 sys | |
import itertools | |
import gc | |
import math | |
import datetime | |
import os | |
import threading | |
import multiprocessing | |
import concurrent.futures | |
import time |
This file contains 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
from ast import literal_eval as make_tuple | |
import random | |
import math | |
import sys | |
import itertools | |
import gc | |
import math | |
import datetime | |
import os | |
import threading |
This file contains 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
# Copyright 2017 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains 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 angular from 'angular'; | |
import ngRedux from 'ng-redux'; | |
import {persistStore, autoRehydrate} from 'redux-persist'; | |
angular.module('demo', [ | |
ngRedux | |
]) | |
.config(config) | |
.run(run); |
This file contains 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 | |
# screencast script with ffmpeg | |
# author: Jorge Ramírez <jorgeramirez1990 at gmail dot com> | |
# help: ./record-screen.sh <record-name> | |
DEST_DIR=./recordings | |
if [ ! -d "$DEST_DIR" ]; then | |
mkdir -p $DEST_DIR |
This file contains 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
<!DOCTYPE HTML> | |
<!-- based on: http://davidwalsh.name/folding-animation --> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Folding Effect</title> | |
<link href='http://fonts.googleapis.com/css?family=Unkempt' rel='stylesheet' type='text/css'> | |
<style> | |
.container { |
This file contains 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 | |
# From: https://code.google.com/p/autoyaourt/ | |
wget https://aur.archlinux.org/packages/package-query/package-query.tar.gz | |
tar zxvf package-query.tar.gz | |
cd package-query | |
makepkg -si | |
cd .. | |
wget https://aur.archlinux.org/packages/yaourt/yaourt.tar.gz | |
tar zxvf yaourt.tar.gz | |
cd yaourt |
This file contains 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 | |
# install.sh: Installation script | |
# Note for maintenance: edit the version variables below for easy updating :D | |
NODEVER=0.8.8 | |
YEOMANVER="yeoman-yeoman-df0bc33fc4e1cf575f3e97ba28778a7838cfb7d1" | |
# checking OS | |
LINUX=0 |
This file contains 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/python | |
# -*- coding: utf-8 -*- | |
import os, re | |
""" | |
Unzip each .zip file inside the current working directory. | |
@author: Jorge Ramírez <[email protected]> | |
""" |