How to use github icon set on fontello - github

Fontello has an area where you can drag custom fonts onto.
GitHub style page here shows they have a custom font I want to use on that fontello can someone please help me to import it.

Yeah I love the GitHub icon font "Octicons" too. Unfortunately as far as I know they're assumed to not freely available to the public - see here: https://github.com/FortAwesome/Font-Awesome/issues/191#issuecomment-6180040
That said - I just did some source file snooping and grabbed the TTF and other files here if you wanna try this on fontello? https://dl.dropboxusercontent.com/u/7951258/fonts/octicons-from-github.com_20140302.zip
PS: If you do find a way to get a hold of them legitamitely please post an update though!

Go to GitHub Style page HERE
Open the inspector Ctrl + Shift + C
Click on Fonts
Click on "See all fonts used in this page"
Find octicons section
Highlight and copy (with Ctrl+C, cant right click here) that box below >Used as: "octicons"
Open notepad and paste it there.
Find the format(svg) and copy it
Go back to firefox, type in http://github.com/ and then paste the string you copied so now in URL bar it says https://github.com//assets/octicons-cdc456dbc5906e59b8c4d1c649a4b734fb0fd97b.svg#octicons
Hit enter and now right click in the page after it loads and go view source
Save this source to your drive
Now go to Fontello tab and then drag the downloaded file into the area on Fontello site where it says "Drag custom SVG icons or SVG font here" on fontello
DONE. Wait and magically all the github icons are now available to you!! Its grouped as "Custom Icons"
Super cool!!

Related

How in chrome/firefox devtool see big style content

I am working on a website that a script is loading a big chunk of style in the HTML. my problem is the chrome dev tools don't let me view the full script. it's also not available in the resource tab and all chrome is doing is putting three dots while trimming the content. is there any way to view it in the dev tool? even if I copy the style content, it's trimmed version.
the same content in the firefox doesn't even load as something readable.
and I have to copy the content and reformat to see the result. wonder if there is any better way to do this?
In Firefox use Style Editor tab in dev tools. from the official documentation:
The Style Editor enables you to:
View and edit all the stylesheets associated with a page.
Create new stylesheets from scratch and apply them to the page.
Import existing stylesheets and apply them to the page.
You have (at least) 2 options to see this tab:
Hit F12, it will open up the Dev tools for you, then click on Style Editor tab.
Hit Shift + F7, it will open up the Dev tools and active Style Editor tab for you.
After opening the tab, you should be able to see all the stylesheets associated with a page in left pane (The style sheet pane), the name of inline stylesheets normally is something like <inline style sheet #1>, click on it, the content/css will show up in right pane (The editor pane).

How to import images in eclipse correctly

I tried to resolve this by both manually just dragging the image to eclipse or getting to the import. But the images always happenes to be an Text file as the Image below shows. Please Help!
Go zoom in and you can see the image imported is a text file
enter image description here
and when i open it:
enter image description here
Go to File Location.
Right Click --> Properties.
In General Tab --> Open With: --> Click Change
Then either from recommended / Other Software choose your application with which you want to open it.
The file has been imported correctly. If you just want to use the image from your code you don't have to do anything.
You are opening the file using the text editor rather than an image viewer. To view the file try right clicking on the file and selecting 'Open With' and selecting 'System Editor'.

Can't find background image

I might be a bit dumb or something, but I just can't find the background image of the site:
http://www.deineschatzkammer.com
Can anyone find it or tell me how to find it easily? I have searched now with the Chrome DevTools and Firebug and searched the code for GIFs, JPGs and PNGs... :(
It is very easy to find the background image. Here are three solutions how to find it using Firebug (it works similar in the Chrome and Firefox DevTools):
Via the CSS panel
Switch to the CSS panel.
Type jpg into the search field.
Hover the matched url(...) to see a preview of the image.
If it's not the right one, hit Enter and repeat step 3.
Via the HTML panel
Right-click the background image and choose Inspect Element with Firebug from the context menu to see the element within the HTML panel.
Switch to the Style side panel.
Check whether one of the rules contains a background-image property.
If there isn't a background-image property containing the related image, this means the element containing the image is overlayed by the one you just inspected. So delete the element by pressing Del on the selected element or right-clicking it and choosing Delete Element from the context menu. Then repeat step 3.
Via the Net panel
Enable and switch to the Net panel.
Reload the page.
Click on the Images filter.
Hover over each listed image to find the one you're searching for.

How to use color picker (eye dropper)?

There is a very useful tool built in chrome dev tool, that I have just discovered. I even don't know its name, and I am not able to find it on google. I would say it is a pixel inspector tool.
I find the following method how to use it:
1a. Inspect an html element with background color.
1b. Define background color of an element.
Click on the color picker.
Move your mouse over any element on the page (not on the dev tool)
See: http://skalar.darkware.hu/skalkaz/Chrome-Colorpicker.gif
My questions:
What is this tool name?
How to use it easily? Most of the time I don't care the color, but I want to inspect the pixels of an icon.
Is there a hotkey of this tool?
To open the Eye Dropper simply:
Open DevTools F12
Go to Elements tab
Under Styles side bar click on any color preview box
Its main functionality is to inspect pixel color values by clicking them though with its new features you can also see your page's existing colors palette or material design palette by clicking on the two arrows icon at the bottom. It can get quite handy when designing your page.
It is just called the eyedropper tool. There is no shortcut key for it that I'm aware of. The only way you can use it now is by clicking on the color picker box in styles sidebar and then clicking on the page as you have already been doing.
Currently, the eyedropper tool is not working in my version of Chrome (as described above), though it worked for me in the past. I hear it is being updated in the latest version of Chrome.
However, I'm able to grab colors easily in Firefox.
Open page in Firefox
Hamburger Menu -> Web Developer -> Eyedropper
Drag eyedropper tool over the image... Click.
Color is copied to your clipboard, and eyedropper tool goes away.
Paste color code
In case you cannot get the eyedropper tool to work in Chrome, this is a good work around.
I also find it easier to access :-)

TinyMce plugin, how to copy 'Link' functionality

I'm creating a new plugin for TinyMce. However I cannot find any examples to see some of the functionality I've seen in other plugins. I've read their source code but I cannot find where it is done:
When you click on an 'A' element, the link/unlink buttons in the taskbar become enabled.
When you right click on an 'A' element, then click on the "Insert/edit link" icon that is shown in the popup menu, the "Insert/edit link" window is setup (has all the attributes for that particular link) prefilled.
Could you suggest somewhere where I could learn how to do this? A file and line number is fine.
Thanks in advance.
Here a part of what you want. To highlight a UI button (link) you may do
tinymce.get(editorid).contentManager.setActive('link', true);
EDIT: For the other functionality have a look at editor_plugin_src.js/editor_plugin.js in the directory tiny_mce\plugins\advlink\. It is only small in size. You will find that a file called link.htm is being called to form the popup. Hope this helps.