Skip to content

Instantly share code, notes, and snippets.

View younjin's full-sized avatar
Bad at responding - sorry!

Jinny younjin

Bad at responding - sorry!
View GitHub Profile
@younjin
younjin / telia_gb_left.sh
Created January 14, 2022 21:06 — forked from kopiro/telia_gb_left.sh
Telia GB Left (XBar)
#!/bin/bash
# <xbar.title>Telia GB Left</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.author>Flavio De Stefano</xbar.author>
# <xbar.author.github>kopiro</xbar.author.github>
# <xbar.var>string(SESSID=""): Session ID</xbar.var>
# <xbar.var>string(SUBSCRIPTION_ID=""): Subscription ID; if left blank, the first subscription found is gonna be used</xbar.var>
headers='-H "Accept: application/json" -H "X-IOS-Build: 4068" -H "ga-av: 10.10.4" -H "ga-aid: com.teliasonera.selfservice.telia" -H "User-Agent: com.teliasonera.selfservice.telia/10.10.4 (iOS 15.2; Apple)" -H "ga-an: Mitttelia"'

Basics

  • price
  • lease start date
  • lease length
    • sublet okay?
  • neighbhourhood
  • # bedrooms
  • # bathrooms
  • no fee only?
  • sqft
@younjin
younjin / .gitconfig
Created October 24, 2016 23:41 — forked from isaacs/.gitconfig
These are my shortcuts for git.
# A bunch of the stuff above relies on this, especially the aliases.
[user]
# you probably want to change this bit.
name = isaacs
email = i@izs.me
signingkey = 0x6C481CF6
[alias]
ci = commit
st = status
br = branch
@younjin
younjin / git-aliases.md
Created October 24, 2016 23:00 — forked from mwhite/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@younjin
younjin / outboard.coffee
Created June 30, 2016 17:36 — forked from jpreardon/outboard.coffee
Simple In/Out Board for Dashing
class Dashing.Outboard extends Dashing.Widget
ready: ->
# This is fired when the widget is done being rendered
onData: (data) ->
# Handle incoming data
# You can access the html node of this widget with `@node`
# Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in.

Keybase proof

I hereby claim:

  • I am younjin on github.
  • I am younjin (https://keybase.io/younjin) on keybase.
  • I have a public key whose fingerprint is 5018 6F18 1F5E C313 2C57 D48F 616D 569F 8966 A8D1

To claim this, I am signing this object:

<?php
function isOntarioPostalCode($string){
return preg_match("%[PKLNM][123456789][ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ][123456789]%i"), $string);
}
?>
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal