Skip to content

Instantly share code, notes, and snippets.

🔥
Doing it

David da Silva dasilvacontin

🔥
Doing it
Block or report user

Report or block dasilvacontin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fuck-you-apple
#!/usr/bin/env node
const { execSync } = require('child_process')
function denyApple () {
const ps = execSync('ps -ef | sed 1d').toString().split('\n')
const systemPrefsInfo = ps.find(p => p.indexOf('System Preferences') > 1)
if (systemPrefsInfo != null) {
const pid = systemPrefsInfo.trim().split(' ').filter(s => s.length)[1]
View keybase.md

Keybase proof

I hereby claim:

  • I am dasilvacontin on github.
  • I am dasilvacontin (https://keybase.io/dasilvacontin) on keybase.
  • I have a public key whose fingerprint is DB71 D9B7 20CE 83C9 852F 0307 576C C851 5890 CE50

To claim this, I am signing this object:

@dasilvacontin
dasilvacontin / browser-polyfill
Created Nov 25, 2014
polyfill for the lack of a browser
View browser-polyfill
<!--[if IE]><script>window.location='http://youtu.be/BROWqjuTM0g'</script><![endif]-->
@dasilvacontin
dasilvacontin / fontlogger
Created Sep 10, 2014
Log all the fonts available in Swift
View fontlogger
for family in UIFont.familyNames() as [String]
{
println("\(family)")
for name in UIFont.fontNamesForFamilyName(family)
{
println(" \(name)")
}
}
You can’t perform that action at this time.