This file contains hidden or 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
[ | |
{ | |
"name": "Blekinge", | |
"slug": "blekinge" | |
}, | |
{ | |
"name": "Dalarna", | |
"slug": "dalarna" | |
}, | |
{ |
This file contains hidden or 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
sv: | |
hello: "Hej världen" | |
datetime: | |
distance_in_words: | |
less_than_x_minutes: "mindre än en minut sedan" | |
about_x_minutes: | |
one: "ungefär en minut sedan" | |
other: ! "ungefär %{count} minuter sedan" | |
x_minutes: | |
one: "en minut sedan" |
This file contains hidden or 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
POLICE | |
- POLICE_HIDING // Gömd poliskontroll | |
- POLICE_VISIBLE // Poliskontroll | |
HAZARD | |
- HAZARD_ON_SHOULDER_CAR_STOPPED // Fordon har stannat på vägrenen | |
This file contains hidden or 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
{ | |
"to":"+467668614100", | |
"direction":"incoming", | |
"from":"+467383931100", | |
"result":"newincoming", | |
"callid":"cae4eb39e3ea72caa36bb254c94760930" | |
} |
This file contains hidden or 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 | |
response=$(curl http://localhost:3000/api/status) | |
alert () { | |
curl -X POST \ | |
-u username:password \ | |
-H "Content-Type: application/x-www-form-urlencoded" \ | |
-d "from=BRON" \ | |
-d "message=Status for API is unknown! 😭" \ | |
-d "to=+467900000" \ |
This file contains hidden or 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 | |
backup_path="/backup/$(date +"%y-%m-%d")/$(date +"%H-%M")-backup" | |
initdump () { | |
mkdir -p /tmp_backup | |
dump | |
storage | |
} | |
dump () { |
This file contains hidden or 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
def resize_nocrop_noscale(image, w,h) | |
w_original = image[:width].to_f | |
h_original = image[:height].to_f | |
if w_original < w && h_original < h | |
return image | |
end | |
# resize | |
image.resize("#{w}x#{h}") |
This file contains hidden or 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
<section id="trafficInfo"> | |
<div class="clickable all clicked" style="display: none;"> | |
<h2>Trafikinfo (3)</h2> | |
<span id="chooseArea">Område<span></span></span> | |
</div> | |
<div class="clickable omrade omrade14 clicked" style="display: inline-block;"> | |
<h2>Trafikinfo: Matfors (1)</h2> |
This file contains hidden or 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
{ | |
"songs":[{ | |
"title":"UFO", | |
"album":"UFO", | |
"artist":"Vigiland", | |
"duration":"144", | |
"spotify_song":"spotify:track:3zYqHQ4tu4pB2acp9Lltnz", | |
"spotify_album":"spotify:album:6kfTbuVKwpTPfzMwcDE0Sz", | |
"spotify_artist":"spotify:artist:3tLYpanVDomWAZqF82NPds", |
This file contains hidden or 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
{"payload":{"actions":[{"cmd":"replace","target":"m_more_friends","html":"\u003Cdiv>\u003Cdiv class=\"item _cs2 acw abt\" data-sigil=\"undoable-action marea\">\u003Cdiv class=\"ib cc _1aj4\">\u003Ca class=\"darkTouch _1aj5 l\" href=\"\/filip.vi.5?fref=fr_tab&amp;pn_ref=friends_all\">\u003Ci class=\"img profpic\" aria-label=\"Filip Vi\" role=\"img\" style=\"background:#d8dce6 url(&quot;https:\/\/fbcdn-profile-a.akamaihd.net\/hprofile-ak-xpa1\/v\/t1.0-1\/p480x480\/10422291_1533076660265315_4414758563003550678_n.jpg?oh=6b32c59d139148beae3134df79266fe2&amp;oe=55036A3D&amp;__gda__=1427045183_ef0807ed19a04ac841079dad51329e6f&quot;) no-repeat center;background-size:100\u0025 100\u0025;-webkit-background-size:100\u0025 100\u0025;width:48px;height:48px;\" data-sigil=\"touchable\">\u003C\/i>\u003C\/a>\u003Cdiv class=\"_4mn c\">\u003Ca href=\"\/filip.vi.5?fref=fr_tab&amp;pn_ref=friends_all\">\u003Cdiv class=\"_4mo\">\u003Cstrong>Filip Vi\u003C\/strong>\u003C\/d |