Skip to content

Instantly share code, notes, and snippets.

@ckim
ckim / latimesbypass_gm.user.js
Last active February 15, 2020 23:44 — forked from maryqygao/latimesbypass_gm.user.js
LA Times Registration Wall Bypasser
// ==UserScript==
// @name LA Times Registration Wall Bypasser
// @namespace https://gist.github.com/kitkat2
// @description Bypasses the Los Angeles Times Regsitration wall
// @include https://*.latimes.com/*
// @version 1
// @grant none
// @require http://code.jquery.com/jquery-3.1.1.min.js
// ==/UserScript==
import os
import sys
import pandas as pd
import pandas_datareader.data as web
import numpy as np
import time
import asyncio
from fake_useragent import UserAgent
'''set path variables'''
project_dir = "YOUR/PROJECT/DIR"
@ckim
ckim / apns.rb
Created June 2, 2012 20:44 — forked from scotttam/apns.rb
Sends an Apple Push Notification with Ruby
require "rubygems"
require "yajl"
require "openssl"
require "socket"
device_token = '39cac56f 986a0e66 3c4fd4f4 68df5598 024d2ca3 8b9f307c 741c180e 9fc30c62'
device_token = device_token.gsub(" ", "")
the_byte_token = [device_token].pack("H*")
file = File.open("ruby_the_byte_token", "wb")