Skip to content

Instantly share code, notes, and snippets.

View azisaka's full-sized avatar

Zisa azisaka

View GitHub Profile
companyId transactionId amount
5cf1486a9477524978a1e7d5 4335633 487570
5b86a4bfd74a8400044fb6d7 4335633 -487570
@azisaka
azisaka / 1.py
Last active August 9, 2020 23:08
from google.colab import drive
drive.mount('/content/drive')
import pandas as pd
df = pd.read_csv('/content/drive/My Drive/Data/file.csv')
df.head(10)
@azisaka
azisaka / install.sh
Last active July 25, 2017 15:38
Download and Install PhantomJS
#!/bin/bash
PHANTOMJS=phantomjs-2.1.1-linux-x86_64
PHANTOMJS_FILE=$PHANTOMJS.tar.bz2
cd /tmp
curl -LO https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_FILE
tar xvjf $PHANTOMJS_FILE
mv $PHANTOMJS/bin/phantomjs /usr/local/bin
rm -rf $PHANTOMJS
rm /tmp/$PHANTOMJS_FILE
var div1 = $("#the-div1");
var div2 = $("#the-div2");
var div3 = $("#the-div3");
var aziScroll = new AziScroll();
aziScroll.addEvent(1000, div1, function(element) { element.addClass("x") });
aziScroll.addEvent(2000, div2, function(element) { element.addClass("y") });
aziScroll.addEvent(3000, div3, function(element) { element.addClass("z") });
var onScroll = function() {
@azisaka
azisaka / gist:6a50ec1478384bdb78bc
Created April 30, 2014 06:14
How to install Debugger gem with Rbenv
rbenv install 1.9.3-p545 --keep
gem install debugger -v 1.6.5 -- --with-ruby-include=/Users/azisaka/.rbenv/sources/1.9.3-p545/ruby-1.9.3-p545
class User < ActiveRecord::Base
# ...
def self.sync_users
users_to_sync = where synced: false
SyncUsers.new(users_to_sync).tap &:sync
end
# ...
end
class UsersSyncer
@azisaka
azisaka / robot.js
Created November 30, 2012 21:04
ROLLERCOASTER
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);
@azisaka
azisaka / gist:4163570
Created November 28, 2012 19:41
custom-modernizr.js
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderradius-boxshadow-opacity-textshadow-cssgradients-canvas-shiv-teststyles-testprop-testallprops-prefixes-domprefixes
*/
;window.Modernizr=function(a,b,c){function y(a){i.cssText=a}function z(a,b){return y(l.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b){for(var d in a){var e=a[d];if(!B(e,"-")&&i[e]!==c)return b=="pfx"?e:!0}return!1}function D(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}function E(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return A(b,"string")||A(b,"undefined")?C(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),D(e,b,c))}var d="2.6.2",e={},f=b.documentElement,g="modernizr",h=b.createElement(g),i=h.style,j,k={}.toString,l=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().sp
@azisaka
azisaka / .gitignore
Created February 1, 2012 01:42
Creates to do lists on Basecamp
*.pyc
client-*
@azisaka
azisaka / .gitignore
Created October 23, 2010 21:33
FileRead.java
*.class