I hereby claim:
- I am jrnk on github.
- I am jrn (https://keybase.io/jrn) on keybase.
- I have a public key whose fingerprint is AAA7 9323 3125 4E83 A4CC 3F60 A93C 7923 BC82 DC83
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
ActiveRecord::Base.connection.tables.each do |table| | |
ActiveRecord::Base.connection.reset_pk_sequence!(table) | |
end |
[ | |
{ "code": "aa", "name": "Afar" }, | |
{ "code": "ab", "name": "Abkhazian" }, | |
{ "code": "ae", "name": "Avestan" }, | |
{ "code": "af", "name": "Afrikaans" }, | |
{ "code": "ak", "name": "Akan" }, | |
{ "code": "am", "name": "Amharic" }, | |
{ "code": "an", "name": "Aragonese" }, | |
{ "code": "ar", "name": "Arabic" }, | |
{ "code": "as", "name": "Assamese" }, |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
#!/usr/bin/env ruby | |
require 'english' | |
require 'rubocop' | |
ADDED_OR_MODIFIED = /A|AM|^M/.freeze | |
changed_files = `git status --porcelain`.split(/\n/). | |
select { |file_name_with_status| | |
file_name_with_status =~ ADDED_OR_MODIFIED |
I hereby claim:
To claim this, I am signing this object:
<?php | |
use Cache; | |
use GuzzleHttp\Client; | |
// set ENV variables: INSTAGRAM_USERNAME and optional INSTAGRAM_CACHE_TIME (in minutes, default = 60) | |
class InstagramGateway | |
{ | |
public function getLatestPhotos($maxNumber = 4) |
import React, { Component } from 'react' | |
import { Animated } from 'react-native' | |
export default class RemoteImage extends Component { | |
constructor(props) { | |
super() | |
this.state = { | |
fadeAnim: new Animated.Value(0) | |
} |
# usage: | |
# ig = Instagram.new(profile: "shrt").images | |
class Instagram | |
def initialize(args) | |
@profile = args[:profile] | |
@output = args[:output] ? args[:output] : :full | |
begin | |
response = HTTP.get("https://www.instagram.com/#{@profile}/") | |
match_regex = /<script type="text\/javascript">window\._sharedData = (.*);<\/script>/ |